\Symfony\Component\HttpFoundation\Session\Storage\HandlerMemcachedSessionHandler

Memcached based session storage handler based on the Memcached class provided by the PHP memcached extension.

Summary

Methods
Properties
Constants
__construct()
open()
close()
read()
write()
destroy()
gc()
No public properties found
No constants found
getMemcached()
No protected properties found
N/A
No private methods found
$memcached
$ttl
$prefix
N/A

Properties

$memcached

$memcached : 

Type

$ttl

$ttl : integer

Type

integer — Time to live in seconds

$prefix

$prefix : string

Type

string — Key prefix for shared environments

Methods

__construct()

__construct(\Memcached  $memcached, array  $options = array()) 

List of available options: * prefix: The prefix to use for the memcached keys in order to avoid collision * expiretime: The time to live in seconds

Parameters

\Memcached $memcached

A \Memcached instance

array $options

An associative array of Memcached options

Throws

\InvalidArgumentException

When unsupported options are passed

open()

open(  $savePath,   $sessionName) 

{@inheritdoc}

Parameters

$savePath
$sessionName

close()

close() 

{@inheritdoc}

read()

read(  $sessionId) 

{@inheritdoc}

Parameters

$sessionId

write()

write(  $sessionId,   $data) 

{@inheritdoc}

Parameters

$sessionId
$data

destroy()

destroy(  $sessionId) 

{@inheritdoc}

Parameters

$sessionId

gc()

gc(  $maxlifetime) 

{@inheritdoc}

Parameters

$maxlifetime

getMemcached()

getMemcached() : \Memcached

Return a Memcached instance.

Returns

\Memcached