MemcacheSessionHandler
in package
implements
SessionHandlerInterface
Tags
Interfaces, Classes and Traits
- SessionHandlerInterface
Table of Contents
- $memcache : mixed
- $prefix : string
- $ttl : int
- __construct() : mixed
- Constructor.
- close() : mixed
- {@inheritdoc}
- destroy() : mixed
- {@inheritdoc}
- gc() : mixed
- {@inheritdoc}
- open() : mixed
- {@inheritdoc}
- read() : mixed
- {@inheritdoc}
- write() : mixed
- {@inheritdoc}
- getMemcache() : Memcache
- Return a Memcache instance.
Properties
$memcache
private
mixed
$memcache
$prefix
private
string
$prefix
Key prefix for shared environments
$ttl
private
int
$ttl
Time to live in seconds
Methods
__construct()
Constructor.
public
__construct(Memcache $memcache[, array<string|int, mixed> $options = [] ]) : mixed
List of available options:
- prefix: The prefix to use for the memcache keys in order to avoid collision
- expiretime: The time to live in seconds
Parameters
- $memcache : Memcache
-
A \Memcache instance
- $options : array<string|int, mixed> = []
-
An associative array of Memcache options
Tags
Return values
mixed —close()
{@inheritdoc}
public
close() : mixed
Return values
mixed —destroy()
{@inheritdoc}
public
destroy(mixed $sessionId) : mixed
Parameters
- $sessionId : mixed
Return values
mixed —gc()
{@inheritdoc}
public
gc(mixed $maxlifetime) : mixed
Parameters
- $maxlifetime : mixed
Return values
mixed —open()
{@inheritdoc}
public
open(mixed $savePath, mixed $sessionName) : mixed
Parameters
- $savePath : mixed
- $sessionName : mixed
Return values
mixed —read()
{@inheritdoc}
public
read(mixed $sessionId) : mixed
Parameters
- $sessionId : mixed
Return values
mixed —write()
{@inheritdoc}
public
write(mixed $sessionId, mixed $data) : mixed
Parameters
- $sessionId : mixed
- $data : mixed
Return values
mixed —getMemcache()
Return a Memcache instance.
protected
getMemcache() : Memcache