Overview

Namespaces

  • Evenement
  • None
  • PHP
  • Psr
    • Http
      • Message
  • Ratchet
    • Http
    • RFC6455
      • Handshake
      • Messaging
    • Server
    • Session
      • Serialize
      • Storage
        • Proxy
    • Wamp
    • WebSocket
  • React
    • EventLoop
      • Tick
      • Timer
    • Socket
    • Stream
  • Symfony
    • Component
      • HttpFoundation
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
      • Routing
        • Annotation
        • Exception
        • Generator
          • Dumper
        • Loader
          • DependencyInjection
        • Matcher
          • Dumper
        • Tests
          • Annotation
          • Fixtures
            • AnnotatedClasses
            • OtherAnnotatedClasses
          • Generator
            • Dumper
          • Loader
          • Matcher
            • Dumper

Classes

  • MemcachedSessionHandler
  • MemcacheSessionHandler
  • MongoDbSessionHandler
  • NativeFileSessionHandler
  • NativeSessionHandler
  • NullSessionHandler
  • PdoSessionHandler
  • WriteCheckSessionHandler
  • Overview
  • Namespace
  • Class
  • Tree

Class MemcachedSessionHandler

MemcachedSessionHandler.

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

Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler implements SessionHandlerInterface
Namespace: Symfony\Component\HttpFoundation\Session\Storage\Handler
Author: Drak <drak@zikula.org>
See: http://php.net/memcached
Located at Storage/Handler/MemcachedSessionHandler.php
Methods summary
public
# __construct( Memcached $memcached, array $options = array() )

Constructor.

Constructor.

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
$memcached A \Memcached instance
$options
array
$options An associative array of Memcached options

Throws

InvalidArgumentException
When unsupported options are passed
public
# open( mixed $savePath, mixed $sessionName )

Implementation of

SessionHandlerInterface::open()
public
# close( )

Implementation of

SessionHandlerInterface::close()
public
# read( mixed $sessionId )

Implementation of

SessionHandlerInterface::read()
public
# write( mixed $sessionId, mixed $data )

Implementation of

SessionHandlerInterface::write()
public
# destroy( mixed $sessionId )

Implementation of

SessionHandlerInterface::destroy()
public
# gc( mixed $maxlifetime )

Implementation of

SessionHandlerInterface::gc()
protected Memcached
# getMemcached( )

Return a Memcached instance.

Return a Memcached instance.

Returns

Memcached
Ratchet API documentation generated by ApiGen 2.8.0