Class RedisResourceManager

Summary

Fully Qualified Name: Zend\Cache\Storage\Adapter\RedisResourceManager

Description

This is a resource manager for redis

Methods

Name Description Defined By
getDatabase() Get redis resource database RedisResourceManager
getLibOption() Get one Redis option RedisResourceManager
getLibOptions() Get Redis options RedisResourceManager
getMajorVersion() Get redis major server version RedisResourceManager
getMayorVersion() Get redis server version RedisResourceManager
getPassword() Get redis resource password RedisResourceManager
getPersistentId() Get the persistent id RedisResourceManager
getResource() Gets a redis resource RedisResourceManager
getServer() Get server RedisResourceManager
getVersion() Get redis server version RedisResourceManager
hasResource() Check if a resource exists RedisResourceManager
removeResource() Remove a resource RedisResourceManager
setDatabase() Set redis database number RedisResourceManager
setLibOption() Set one Redis option RedisResourceManager
setLibOptions() Set Redis options RedisResourceManager
setPassword() Set redis password RedisResourceManager
setPersistentId() Set the persistent id RedisResourceManager
setResource() Set a resource RedisResourceManager
setServer() Set server RedisResourceManager

Method Details

getDatabase()

Get redis resource database

Parameter Name Type Description
$id string

Returns: string

getLibOption()

Get one Redis option

Parameter Name Type Description
$id string
$key string|int

Returns: mixed

getLibOptions()

Get Redis options

Parameter Name Type Description
$id string

Returns: array

getMajorVersion()

Get redis major server version

Parameter Name Type Description
$resourceId string

Returns: int

getMayorVersion()

Get redis server version

Parameter Name Type Description
$id string

Returns: int

getPassword()

Get redis resource password

Parameter Name Type Description
$id string

Returns: string

getPersistentId()

Get the persistent id

Parameter Name Type Description
$id string

Returns: string

getResource()

Gets a redis resource

Parameter Name Type Description
$id string

Returns: \RedisResource

getServer()

Get server

Parameter Name Type Description
$id string

Returns: array array('host' => <host>[, 'port' => <port>[, 'timeout' => <timeout>]])

getVersion()

Get redis server version

Parameter Name Type Description
$resourceId string

Returns: string

hasResource()

Check if a resource exists

Parameter Name Type Description
$id string

Returns: bool

removeResource()

Remove a resource

Parameter Name Type Description
$id string

Returns: \RedisResourceManager Fluent interface

setDatabase()

Set redis database number

Parameter Name Type Description
$id string
$database int

Returns: \RedisResourceManager

setLibOption()

Set one Redis option

Parameter Name Type Description
$id string
$key string|int
$value mixed

Returns: \RedisResourceManager Fluent interface

setLibOptions()

Set Redis options

Parameter Name Type Description
$id string
$libOptions array

Returns: \RedisResourceManager Fluent interface

setPassword()

Set redis password

Parameter Name Type Description
$id string
$password string

Returns: \RedisResource

setPersistentId()

Set the persistent id

Parameter Name Type Description
$id string
$persistentId string

Returns: \RedisResourceManager Fluent interface

setResource()

Set a resource

Parameter Name Type Description
$id string
$resource array|\Traversable|\RedisResource

Returns: \RedisResourceManager Fluent interface

setServer()

Set server

Server can be described as follows:

Parameter Name Type Description
$id string
$server string|array

Returns: \RedisResourceManager

Top