\Symfony\Component\HttpFoundation\Session\Storage\HandlerMemcacheSessionHandler

Summary

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

Properties

$memcache

$memcache : 

Type

$ttl

$ttl : integer

Type

integer — Time to live in seconds

$prefix

$prefix : string

Type

string — Key prefix for shared environments

Methods

__construct()

__construct(\Memcache  $memcache, array  $options = array()) 

Constructor.

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

array $options

An associative array of Memcache 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

getMemcache()

getMemcache() : \Memcache

Return a Memcache instance.

Returns

\Memcache