Documentation

MemcacheSessionHandler
in package
implements SessionHandlerInterface

Tags
author

Drak drak@zikula.org

deprecated

since version 3.4, to be removed in 4.0. Use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler instead.

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

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
throws
InvalidArgumentException

When unsupported options are passed

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
Return values
Memcache

Search results