Zend\Cache\Storage\Adapter\MemcacheOptions
These are options specific to the Memcache adapter
Synopsis
class MemcacheOptions
extends AdapterOptions
{
- // members
- protected string $namespaceSeparator;
- protected null|MemcacheResourceManager $resourceManager;
- protected string $resourceId;
- protected bool $compression;
- // 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 MemcacheOptions setNamespaceSeparator()
- public string getNamespaceSeparator()
- public MemcacheOptions setResourceManager()
- public MemcacheResourceManager getResourceManager()
- public string getResourceId()
- public MemcacheOptions setResourceId()
- public boolean getCompression()
- public $this setCompression()
- public MemcacheOptions setServers()
- public array getServers()
- public MemcacheOptions setAutoCompressThreshold()
- public int|null getAutoCompressThreshold()
- public MemcacheOptions setAutoCompressMinSavings()
- public RuntimeException getAutoCompressMinSavings()
- public MemcacheOptions setServerDefaults()
- public array getServerDefaults()
- public $this setFailureCallback()
- public callable getFailureCallback()
- // 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 - $compression
—
Zend\Cache\Storage\Adapter\bool
Enable compression when data is written - $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|MemcacheResourceManager
The memcache resource manager - $ttl
—
Zend\Cache\Storage\Adapter\int|float
TTL option - $writable
—
Zend\Cache\Storage\Adapter\bool
Writable option
Methods
public
- getAutoCompressMinSavings() — Get compress min savings
- getAutoCompressThreshold() — Get compress threshold
- getCompression() — Is compressed writes turned on?
- getFailureCallback() — Get callback for server connection failures
- getNamespaceSeparator() — Get namespace separator
- getResourceId() — Get the memcache resource id
- getResourceManager() — Get the memcache resource manager
- getServerDefaults() — Get default server values
- getServers() — Get Servers
- setAutoCompressMinSavings() — Set compress min savings option
- setAutoCompressThreshold() — Set compress threshold
- setCompression() — Set whether compressed writes are turned on or not
- setFailureCallback() — Set callback for server connection failures
- setNamespace() — Set namespace.
- setNamespaceSeparator() — Set namespace separator
- setResourceId() — Set the memcache resource id
- setResourceManager() — Set the memcache resource manager to use
- setServerDefaults() — Set default server values
- setServers() — Sets a list of memcache 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.