php photo new Memcached photo- addServer 127 11301 album_id photo- get

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
$photo = new Memcached;
$photo->addServer('127.0.0.1', 11301);
$album_id = $photo->get("new_album1");
$photo_id = $photo->get("new_photo1,{$album_id}");
echo $album_id;
echo $photo_id;
// st.testart.loc/v1000/40d8/WvXe49SzVp8.png
$volume_id = 1000;
$extra = '1';
$local_id = 1;
$secret = "WvXe49SzVp8";
echo $photo->get("add_photo_location_engine_m1,{$photo_id},{$volume_id},{$local_id},{$extra},{$secret}");
var_dump($photo->get("photo1,{$photo_id}()"));
/*
вывод:
456239221
456239374
OK
bool(false)
*/