cleanup, docs
This commit is contained in:
@@ -15,4 +15,11 @@ Deletes the entry identified by `key`.
|
||||
The return value is `true` when the operation succeeds.
|
||||
|
||||
:example
|
||||
print("memcache_delete 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_del_key", "v");
|
||||
memcache_delete(conn, "doc_del_key");
|
||||
print(memcache_get(conn, "doc_del_key", "gone"), "\n");
|
||||
}
|
||||
else print("(requires a reachable memcached server)\n");
|
||||
|
||||
Reference in New Issue
Block a user