This is a resource manager for memcached
Check if a resource exists
Parameters: | string – |
---|---|
Return type: | boolean |
Gets a memcached resource
Parameters: | string – |
---|---|
Return type: | MemcachedResource |
Throws : | ExceptionRuntimeException |
Set a resource
Parameters: |
|
---|---|
Return type: | MemcachedResourceManager Fluent interface |
Remove a resource
Parameters: | string – |
---|---|
Return type: | MemcachedResourceManager Fluent interface |
Set the persistent id
Parameters: |
|
---|---|
Return type: | MemcachedResourceManager Fluent interface |
Throws : | ExceptionRuntimeException |
Get the persistent id
Parameters: | string – |
---|---|
Return type: | string |
Throws : | ExceptionRuntimeException |
Normalize the persistent id
Parameters: | string – |
---|
Set Libmemcached options
Parameters: |
|
---|---|
Return type: | MemcachedResourceManager Fluent interface |
Get Libmemcached options
Parameters: | string – |
---|---|
Return type: | array |
Throws : | ExceptionRuntimeException |
Set one Libmemcached option
Parameters: |
|
---|---|
Return type: | MemcachedResourceManager Fluent interface |
Get one Libmemcached option
Parameters: |
|
---|---|
Return type: | mixed |
Throws : | ExceptionRuntimeException |
Normalize libmemcached options
Parameters: | array|Traversable – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Convert option name into it’s constant value
Parameters: | string|int – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Set servers
$servers can be an array list or a comma separated list of servers. One server in the list can be descripted as follows: - URI: [tcp://]<host>[:<port>][?weight=<weight>] - Assoc: array(‘host’ => <host>[, ‘port’ => <port>][, ‘weight’ => <weight>]) - List: array(<host>[, <port>][, <weight>])
Parameters: |
|
---|---|
Return type: | MemcachedResourceManager |
Get servers
Parameters: | string – |
---|---|
Throws ExceptionRuntimeException: | |
Return type: | array array(‘host’ => <host>, ‘port’ => <port>, ‘weight’ => <weight>) |
Add servers
Parameters: |
|
---|---|
Return type: | MemcachedResourceManager |
Add one server
Parameters: |
|
---|---|
Return type: | MemcachedResourceManager |
Normalize a list of servers into the following format: array(array(‘host’ => <host>, ‘port’ => <port>, ‘weight’ => <weight>)[, ...])
Parameters: | string|array – |
---|