| Fully Qualified Name: | Laminas\Cache\Storage\Adapter\MemcachedResourceManager |
This is a resource manager for memcached
| Name | Description | Defined By |
|---|---|---|
| addServer() | Add one server | MemcachedResourceManager |
| addServers() | Add servers | MemcachedResourceManager |
| getLibOption() | Get one Libmemcached option | MemcachedResourceManager |
| getLibOptions() | Get Libmemcached options | MemcachedResourceManager |
| getPersistentId() | Get the persistent id | MemcachedResourceManager |
| getResource() | Gets a memcached resource | MemcachedResourceManager |
| getServers() | Get servers | MemcachedResourceManager |
| hasResource() | Check if a resource exists | MemcachedResourceManager |
| removeResource() | Remove a resource | MemcachedResourceManager |
| setLibOption() | Set one Libmemcached option | MemcachedResourceManager |
| setLibOptions() | Set Libmemcached options | MemcachedResourceManager |
| setPersistentId() | Set the persistent id | MemcachedResourceManager |
| setResource() | Set a resource | MemcachedResourceManager |
| setServers() | Set servers | MemcachedResourceManager |
Add one server
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $server | string|array |
Returns: \MemcachedResourceManager
Add servers
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $servers | string|array |
Returns: \MemcachedResourceManager Provides a fluent interface
Get one Libmemcached option
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $key | string|int |
Returns: mixed
Get Libmemcached options
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: array
Get the persistent id
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: string
Gets a memcached resource
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: \MemcachedResource
Get servers
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: array array('host' => <host>, 'port' => <port>, 'weight' => <weight>)
Check if a resource exists
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: bool
Remove a resource
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: \MemcachedResourceManager Provides a fluent interface
Set one Libmemcached option
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $key | string|int | |
| $value | mixed |
Returns: \MemcachedResourceManager Fluent interface
Set Libmemcached options
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $libOptions | array |
Returns: \MemcachedResourceManager Provides a fluent interface
Set the persistent id
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $persistentId | string |
Returns: \MemcachedResourceManager Provides a fluent interface
Set a resource
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $resource | array|\Traversable|\MemcachedResource |
Returns: \MemcachedResourceManager Provides a fluent interface
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:
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $servers | string|array |
Returns: \MemcachedResourceManager Provides a fluent interface