addServer()
addServers()
getLibOption()
getLibOptions()
getPersistentId()
getResource()
getServers()
hasResource()
removeResource()
setLibOption()
setLibOptions()
setPersistentId()
setResource()
setServers()
compareServers()
normalizeLibOptionKey()
normalizeLibOptions()
normalizePersistentId()
normalizeServer()
normalizeServers()
$resources
This is a resource manager for memcached
addServer(string $id, string | array $server) : \Zend\Cache\Storage\Adapter\MemcachedResourceManager
string
stringarray
addServers(string $id, string | array $servers) : \Zend\Cache\Storage\Adapter\MemcachedResourceManager
string
stringarray
getLibOption(string $id, string | int $key) : mixed
string
stringint
\Zend\Cache\Exception\RuntimeException |
---|
mixed
getLibOptions(string $id) : array
getPersistentId(string $id) : string
getResource(string $id) : \Memcached
getServers(string $id) : array
string
\Zend\Cache\Exception\RuntimeException |
---|
array
array('host' => hasResource(string $id) : bool
string
bool
setLibOption(string $id, string | int $key, mixed $value) : \Zend\Cache\Storage\Adapter\MemcachedResourceManager
string
stringint
mixed
\Zend\Cache\Storage\Adapter\MemcachedResourceManager
Fluent interfacesetLibOptions(string $id, array $libOptions) : \Zend\Cache\Storage\Adapter\MemcachedResourceManager
string
array
\Zend\Cache\Storage\Adapter\MemcachedResourceManager
Fluent interfacesetPersistentId(string $id, string $persistentId) : \Zend\Cache\Storage\Adapter\MemcachedResourceManager
string
string
\Zend\Cache\Exception\RuntimeException |
---|
\Zend\Cache\Storage\Adapter\MemcachedResourceManager
Fluent interfacesetResource(string $id, array | \Traversable | \Memcached $resource) : \Zend\Cache\Storage\Adapter\MemcachedResourceManager
string
array\Traversable\Memcached
\Zend\Cache\Storage\Adapter\MemcachedResourceManager
Fluent interfacesetServers(string $id, string | array $servers) : \Zend\Cache\Storage\Adapter\MemcachedResourceManager
$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://]
string
stringarray
compareServers(array $serverA, array $serverB) : int
array
array
int
normalizeLibOptionKey(string | int $key)
normalizeLibOptions(array | \Traversable $libOptions)
normalizePersistentId(string $persistentId)
string
normalizeServer(string | array $server)
normalizeServers(string | array $servers)
..])
stringarray
$resources : array