Zend\Cache\Storage\Adapter\RedisResourceManager
This is a resource manager for redis
Synopsis
class RedisResourceManager
{
- // members
- protected array $resources;
- // methods
- public bool hasResource()
- public Redis getResource()
- protected null connect()
- public RedisResourceManager setResource()
- public RedisResourceManager removeResource()
- public RedisResourceManager setPersistentId()
- public string getPersistentId()
- protected void normalizePersistentId()
- public RedisResourceManager setLibOptions()
- public array getLibOptions()
- public RedisResourceManager setLibOption()
- public mixed getLibOption()
- protected void normalizeLibOptions()
- protected void normalizeLibOptionKey()
- public RedisResourceManager setServer()
- public array getServer()
- public Redis setPassword()
- public string getPassword()
- public Redis setDatabase()
- public string getDatabase()
- public int getMayorVersion()
- public int getMajorVersion()
- protected void normalizeServer()
Tasks
Line | Task |
---|---|
127 | how to get back redis connection info from resource? |
Members
protected
- $resources
—
array
Registered resources
Methods
protected
- connect() — Connects to redis server
- normalizeLibOptionKey() — Convert option name into it's constant value
- normalizeLibOptions() — Normalize Redis options
- normalizePersistentId() — Normalize the persistent id
- normalizeServer() — Normalize one server into the following format: array('host' => <host>[, 'port' => <port>[, 'timeout' => <timeout>]])
public
- getDatabase() — Get redis resource database
- getLibOption() — Get one Redis option
- getLibOptions() — Get Redis options
- getMajorVersion() — Get redis server version
- getMayorVersion() — Get redis server version
- getPassword() — Get redis resource password
- getPersistentId() — Get the persistent id
- getResource() — Gets a redis resource
- getServer() — Get server
- hasResource() — Check if a resource exists
- removeResource() — Remove a resource
- setDatabase() — Set redis database number
- setLibOption() — Set one Redis option
- setLibOptions() — Set Redis options
- setPassword() — Set redis password
- setPersistentId() — Set the persistent id
- setResource() — Set a resource
- setServer() — Set server