Zend\Cache\Storage\Adapter\MemcachedOptions
These are options specific to the Memcached adapter
Synopsis
class MemcachedOptions
extends AdapterOptions
{
- // members
- protected string $namespaceSeparator;
- protected null|MemcachedResourceManager $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 void setNamespace()
- public MemcachedOptions setNamespaceSeparator()
- public string getNamespaceSeparator()
- public MemcachedOptions setMemcachedResource()
- public Memcached getMemcachedResource()
- public MemcachedOptions setResourceManager()
- public MemcachedResourceManager getResourceManager()
- public string getResourceId()
- public MemcachedOptions setResourceId()
- public string getPersistentId()
- public MemcachedOptions setPersistentId()
- public MemcachedOptions addServer()
- public MemcachedOptions setServers()
- public array getServers()
- public MemcachedOptions setLibOptions()
- public MemcachedOptions setLibOption()
- public array getLibOptions()
- public mixed getLibOption()
- // 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|MemcachedResourceManager
The memcached resource manager - $ttl
—
Zend\Cache\Storage\Adapter\int|float
TTL option - $writable
—
Zend\Cache\Storage\Adapter\bool
Writable option
Methods
public
- addServer() — Add a server to the list
- getLibOption() — Get libmemcached option
- getLibOptions() — Get libmemcached options
- getMemcachedResource() — Get memcached resource to share
- getNamespaceSeparator() — Get namespace separator
- getPersistentId() — Get the persistent id
- getResourceId() — Get the memcached resource id
- getResourceManager() — Get the memcached resource manager
- getServers() — Get Servers
- setLibOption() — Set libmemcached option
- setLibOptions() — Set libmemcached options
- setMemcachedResource() — A memcached resource to share
- setNamespace() — Set namespace.
- setNamespaceSeparator() — Set namespace separator
- setPersistentId() — Set the persistent id
- setResourceId() — Set the memcached resource id
- setResourceManager() — Set the memcached resource manager to use
- setServers() — Set a list of memcached servers to add on initialize
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.