21 lines
654 B
Plaintext
21 lines
654 B
Plaintext
:sig
|
|
String memcache_command(u64 connection, String command)
|
|
|
|
:params
|
|
connection : connection handle
|
|
command : string containing the Memcache command
|
|
return value : string containing the Memcache server's response
|
|
|
|
:see
|
|
>memcache
|
|
|
|
:content
|
|
Executes a raw command on an open Memcache connection and returns the server response as a string.
|
|
|
|
This is the low-level escape hatch for Memcache operations that are not covered by the dedicated helpers.
|
|
|
|
:example
|
|
u64 conn = memcache_connect();
|
|
if(conn != 0) print(memcache_command(conn, "stats") != "" ? "stats command returned data" : "no data", "\n");
|
|
else print("(requires a reachable memcached server)\n");
|