| Fully Qualified Name: | Zend\Cache\Storage\Adapter\MemcacheResourceManager |
This is a resource manager for memcache
Add one server
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $server | string|array |
Returns: \MemcacheResourceManager
Add servers
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $servers | string|array |
Returns: \MemcacheResourceManager Provides a fluent interface
Get compress min savings
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: float|null
Get compress threshold
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: int|null
Get callback for server connection failures
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: callable
Gets a memcache resource
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: \MemcacheResource
Get default server values
| Parameter Name | Type | Description |
|---|---|---|
| $id | string |
Returns: array
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: \MemcacheResourceManager Provides a fluent interface
Set compress min savings
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $minSavings | float|string|null |
Returns: \MemcacheResourceManager Provides a fluent interface
Set compress threshold
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $threshold | int|string|array|\ArrayAccess|null | |
| $minSavings | float|string|bool |
Returns: \MemcacheResourceManager Provides a fluent interface
Set callback for server connection failures
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $failureCallback | callable|null |
Returns: \MemcacheResourceManager Provides a fluent interface
Set a resource
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $resource | array|\Traversable|\MemcacheResource | |
| $failureCallback | callable | |
| $serverDefaults | array|\Traversable |
Returns: \MemcacheResourceManager Provides a fluent interface
Set default server values
array(
'persistent' =>
| Parameter Name | Type | Description |
|---|---|---|
| $id | string | |
| $serverDefaults | array |
Returns: \MemcacheResourceManager Provides a fluent interface