memcached
This commit is contained in:
+5
-2
@@ -17,7 +17,7 @@ RENDER()
|
||||
|
||||
auto sfd = memcache_connect();
|
||||
|
||||
echo(memcache_get_raw(sfd, "stats"));
|
||||
echo(memcache_command(sfd, "stats"));
|
||||
|
||||
?></pre>
|
||||
|
||||
@@ -26,7 +26,10 @@ RENDER()
|
||||
<pre><?
|
||||
|
||||
memcache_set(sfd, "test_key", "test_value");
|
||||
echo(memcache_get_raw(sfd, "get test_key"));
|
||||
memcache_set(sfd, "test_key2", "test_value2");
|
||||
echo("raw:: "+memcache_command(sfd, "get test_key")+"\n");
|
||||
echo("get:: "+memcache_get(sfd, "test_key")+"\n");
|
||||
echo("multiple::\n"+var_dump(memcache_get_multiple(sfd, {"test_key", "test_key2"}))+"\n");
|
||||
|
||||
?></pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user