Zend\Cache\Storage\Adapter\RedisOptions
Synopsis
class RedisOptions
extends AdapterOptions
{
- // members
- protected string $namespaceSeparator;
- protected null|RedisResourceManager $resourceManager;
- protected string $resourceId;
- // Inherited members from AdapterOptions
- protected null|Filesystem $adapter;
- protected string $keyPattern;
- protected string $namespace;
- protected bool $readable;
- protected int|float $ttl;
- protected bool $writable;
- // Inherited members from AbstractOptions
- protected bool $__strictMode__;
- // methods
- public RedisOptions setNamespace()
- public RedisOptions setNamespaceSeparator()
- public string getNamespaceSeparator()
- public RedisOptions setResourceManager()
- public RedisResourceManager getResourceManager()
- public string getResourceId()
- public RedisOptions setResourceId()
- public string getPersistentId()
- public RedisOptions setPersistentId()
- public RedisOptions setLibOptions()
- public array getLibOptions()
- public RedisOptions setServer()
- public array getServer()
- public RedisOptions setDatabase()
- public int getDatabase()
- public RedisOptions setPassword()
- public string getPassword()
- // Inherited methods from AdapterOptions
- public AdapterOptions setAdapter()
- public AdapterOptions setKeyPattern()
- public string getKeyPattern()
- public AdapterOptions setNamespace()
- public string getNamespace()
- public AbstractAdapter setReadable()
- public bool getReadable()
- public AdapterOptions setTtl()
- public float getTtl()
- public AdapterOptions setWritable()
- public bool getWritable()
- protected void triggerOptionEvent()
- protected void normalizeTtl()
- // Inherited methods from AbstractOptions
- public void __construct()
- public AbstractOptions setFromArray()
- public array toArray()
- public void __set()
- public mixed __get()
- public bool __isset()
- public void __unset()
Hierarchy
Members
protected
- $__strictMode__
—
Zend\Stdlib\bool
We use the __ prefix to avoid collisions with properties in user-implementations. - $adapter
—
Zend\Cache\Storage\Adapter\null|Filesystem
The adapter using these options - $keyPattern
—
string
Validate key against pattern - $namespace
—
string
Namespace option - $namespaceSeparator
—
string
The namespace separator - $readable
—
Zend\Cache\Storage\Adapter\bool
Readable option - $resourceId
—
string
The resource id of the resource manager - $resourceManager
—
Zend\Cache\Storage\Adapter\null|RedisResourceManager
The redis resource manager - $ttl
—
Zend\Cache\Storage\Adapter\int|float
TTL option - $writable
—
Zend\Cache\Storage\Adapter\bool
Writable option
Methods
public
- 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() — Set resource database number
- setLibOptions() — Set redis options
- setNamespace() — Set namespace.
- setNamespaceSeparator() — Set namespace separator
- setPassword() — Set resource password
- setPersistentId() — Set the persistent id
- setResourceId() — Set the redis resource id
- setResourceManager() — Set the redis resource manager to use
- setServer() — Set server
Inherited from Zend\Cache\Storage\Adapter\AdapterOptions
protected
- normalizeTtl() — Validates and normalize a TTL.
- triggerOptionEvent() — Triggers an option event if this options instance has a connection to an adapter implements EventsCapableInterface.
public
- getKeyPattern() — Get key pattern
- getNamespace() — Get namespace
- getReadable() — If reading data from cache enabled.
- getTtl() — Get time to live.
- getWritable() — If writing data to cache enabled.
- setAdapter() — Adapter using this instance
- setKeyPattern() — Set key pattern
- setNamespace() — Set namespace.
- setReadable() — Enable/Disable reading data from cache.
- setTtl() — Set time to live.
- setWritable() — Enable/Disable writing data to cache.