cleanup, docs
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
:sig
|
||||
u64 memcache_connect(String host = "127.0.0.1", short port = 11211)
|
||||
u64 memcache_connect(String host = "127.0.0.1", u16 port = 11211)
|
||||
|
||||
:params
|
||||
host : optional host name of the memcache server, defaults to local address 127.0.0.1
|
||||
@@ -15,4 +15,5 @@ Connects to a Memcache server instance.
|
||||
If the connection fails, the function returns `-1`.
|
||||
|
||||
:example
|
||||
print("memcache_connect is resource-bound; configure the service or connection, then call it in request code.\n");
|
||||
u64 conn = memcache_connect();
|
||||
print(conn != 0 ? "connected to memcached" : "no memcached server reachable", "\n");
|
||||
|
||||
Reference in New Issue
Block a user