Zend Framework
3.0
|
Public Member Functions | |
setNamespace ($namespace) | |
Set namespace. | |
setNamespaceSeparator ($namespaceSeparator) | |
Set namespace separator. | |
getNamespaceSeparator () | |
Get namespace separator. | |
setResourceManager (RedisResourceManager $resourceManager=null) | |
Set the redis resource manager to use. | |
getResourceManager () | |
Get the redis resource manager. | |
getResourceId () | |
Get the redis resource id. | |
setResourceId ($resourceId) | |
Set the redis resource id. | |
getPersistentId () | |
Get the persistent id. | |
setPersistentId ($persistentId) | |
Set the persistent id. | |
setLibOptions (array $libOptions) | |
Set redis options. | |
getLibOptions () | |
Get redis options. | |
setServer ($server) | |
Set server. | |
getServer () | |
Get server. | |
setDatabase ($database) | |
Set resource database number. | |
getDatabase () | |
Get resource database number. | |
setPassword ($password) | |
Set resource password. | |
getPassword () | |
Get resource password. | |
Public Member Functions inherited from AdapterOptions | |
setAdapter (StorageInterface $adapter=null) | |
Adapter using this instance. | |
setKeyPattern ($keyPattern) | |
Set key pattern. | |
getKeyPattern () | |
Get key pattern. | |
setNamespace ($namespace) | |
Set namespace. | |
getNamespace () | |
Get namespace. | |
setReadable ($readable) | |
Enable/Disable reading data from cache. | |
getReadable () | |
If reading data from cache enabled. | |
setTtl ($ttl) | |
Set time to live. | |
getTtl () | |
Get time to live. | |
setWritable ($writable) | |
Enable/Disable writing data to cache. | |
getWritable () | |
If writing data to cache enabled. | |
toArray () | |
Cast to array. | |
setFromArray ($options) | |
{} | |
Public Member Functions inherited from AbstractOptions | |
__construct ($options=null) | |
Constructor. | |
setFromArray ($options) | |
Set one or more configuration properties. | |
toArray () | |
Cast to array. | |
__set ($key, $value) | |
Set a configuration property. | |
__get ($key) | |
Get a configuration property. | |
__isset ($key) | |
Test if a configuration property is null. | |
__unset ($key) | |
Set a configuration property to NULL. | |
Protected Attributes | |
$__prioritizedProperties__ = ['resource_manager', 'resource_id'] | |
$namespaceSeparator = ':' | |
$resourceManager | |
$resourceId = 'default' | |
Protected Attributes inherited from AdapterOptions | |
$__prioritizedProperties__ = [] | |
$adapter | |
$keyPattern = '' | |
$namespace = 'zfcache' | |
$readable = true | |
$ttl = 0 | |
$writable = true | |
Protected Attributes inherited from AbstractOptions | |
$__strictMode__ = true | |
Additional Inherited Members | |
Protected Member Functions inherited from AdapterOptions | |
triggerOptionEvent ($optionName, $optionValue) | |
Triggers an option event if this options instance has a connection to an adapter implements EventsCapableInterface. | |
normalizeTtl (&$ttl) | |
Validates and normalize a TTL. | |
getDatabase | ( | ) |
Get resource database number.
getLibOptions | ( | ) |
Get redis options.
getNamespaceSeparator | ( | ) |
Get namespace separator.
getPassword | ( | ) |
Get resource password.
getPersistentId | ( | ) |
Get the persistent id.
getResourceId | ( | ) |
Get the redis resource id.
getResourceManager | ( | ) |
Get the redis resource manager.
getServer | ( | ) |
Get server.
setDatabase | ( | $database | ) |
setLibOptions | ( | array | $libOptions | ) |
Set redis options.
array | $libOptions |
setNamespace | ( | $namespace | ) |
Set namespace.
The option Redis::OPT_PREFIX will be used as the namespace. It can't be longer than 128 characters.
string | $namespace | Prefix for each key stored in redis |
setNamespaceSeparator | ( | $namespaceSeparator | ) |
setPassword | ( | $password | ) |
setPersistentId | ( | $persistentId | ) |
setResourceId | ( | $resourceId | ) |
setResourceManager | ( | RedisResourceManager | $resourceManager = null | ) |
Set the redis resource manager to use.
null | RedisResourceManager | $resourceManager |
setServer | ( | $server | ) |
Set server.
Server can be described as follows:
string | array | $server |
|
protected |
|
protected |
|
protected |
|
protected |