uce/site/doc/pages/memcache_connect.txt
2026-06-16 12:21:31 +00:00

19 lines
536 B
Plaintext

:sig
u64 memcache_connect(String host = "127.0.0.1", short port = 11211)
:params
host : optional host name of the memcache server, defaults to local address 127.0.0.1
port : optional memcache server's port, defaults to 11211
return value : the connection handle (or -1 if an error occurred)
:see
>memcache
:content
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");