21 lines
610 B
Plaintext
21 lines
610 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`.
|
|
|
|
Related:
|
|
|
|
- PHP: `Memcache` or `Memcached` methods such as `get()`, `set()`, `delete()`, and `getMulti()`
|
|
- JavaScript / Node.js: clients such as `memjs`, `memcached`, or similar Memcached packages
|