CacheBasedSessionHandler
in package
implements
SessionHandlerInterface
Interfaces, Classes and Traits
- SessionHandlerInterface
Table of Contents
- $cache : Repository
- The cache repository instance.
- $minutes : int
- The number of minutes to store the data in the cache.
- __construct() : void
- Create a new cache driven handler instance.
- close() : mixed
- {@inheritdoc}
- destroy() : mixed
- {@inheritdoc}
- gc() : mixed
- {@inheritdoc}
- getCache() : Repository
- Get the underlying cache repository.
- open() : mixed
- {@inheritdoc}
- read() : mixed
- {@inheritdoc}
- write() : mixed
- {@inheritdoc}
Properties
$cache
The cache repository instance.
protected
Repository
$cache
$minutes
The number of minutes to store the data in the cache.
protected
int
$minutes
Methods
__construct()
Create a new cache driven handler instance.
public
__construct(Repository $cache, int $minutes) : void
Parameters
- $cache : Repository
- $minutes : int
Return values
void —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 $lifetime) : mixed
Parameters
- $lifetime : mixed
Return values
mixed —getCache()
Get the underlying cache repository.
public
getCache() : Repository
Return values
Repository —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