php mc new Memcache mc connect 127 11216 mc get new_album1 mc get new_

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<?php
$mc = new Memcache(); $mc -> connect('127.0.0.1', 11216);
$x = $mc -> get("new_album1");
$y = $mc -> get("new_photo1,{$x}");
var_dump($y);
var_dump($mc -> get("albums_count1"));
$rotate = 0;
$size = 'M';
$owner_id = 1;
$photo_id = $y;
$volume_id = 1000;
$local_id = 1;
$extra = "1";
$secret = "XUUaaGk5m7M";
var_dump($mc -> get("add_photo_location_engine_m{$owner_id},{$photo_id},{$volume_id},{$local_id},{$extra},{$secret}"));