Signature
StringMap memcache_get_multiple(u64 connection, StringList keys)
Parameters
connection : connection handle
keys : a list of strings containing the keys to be retrieved
return value : a StringMap with the retrieved entries
Retrieves multiple entries in one call.
The result is returned as a StringMap keyed by the requested Memcache keys.
Example
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");
Output
v1 / v2