cleanup, docs
This commit is contained in:
@@ -15,4 +15,13 @@ Retrieves multiple entries in one call.
|
||||
The result is returned as a `StringMap` keyed by the requested Memcache keys.
|
||||
|
||||
:example
|
||||
print("memcache_get_multiple is resource-bound; configure the service or connection, then call it in request code.\n");
|
||||
u64 conn = memcache_connect();
|
||||
if(conn != 0)
|
||||
{
|
||||
memcache_set(conn, "doc_k1", "v1");
|
||||
memcache_set(conn, "doc_k2", "v2");
|
||||
StringList keys; keys.push_back("doc_k1"); keys.push_back("doc_k2");
|
||||
StringMap vals = memcache_get_multiple(conn, keys);
|
||||
print(vals["doc_k1"], " / ", vals["doc_k2"], "\n");
|
||||
}
|
||||
else print("(requires a reachable memcached server)\n");
|
||||
|
||||
Reference in New Issue
Block a user