Zend\Cache\Storage\Adapter\SessionOptions
These are options specific to the APC adapter
Synopsis
class SessionOptions
extends AdapterOptions
{
- // members
- protected null|SessionContainer $sessionContainer;
- // 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 SessionOptions setSessionContainer()
- public null|SessionContainer getSessionContainer()
- // 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 - $readable
—
Zend\Cache\Storage\Adapter\bool
Readable option - $sessionContainer
—
Zend\Cache\Storage\Adapter\null|SessionContainer
The session container - $ttl
—
Zend\Cache\Storage\Adapter\int|float
TTL option - $writable
—
Zend\Cache\Storage\Adapter\bool
Writable option
Methods
public
- getSessionContainer() — Get the session container
- setSessionContainer() — Set the session container
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.