class Illuminate / Session / CacheBasedSessionHandler
You are viewing an older version of the documentation. For the latest, please visit master documentation.

CacheBasedSessionHandler

Implements

Properties

protected

$cache Repository

The cache repository instance.

Default: null
protected

$minutes int

The number of minutes to store the data in the cache.

Default: null

Methods

public

__construct ( Repository $cache , $minutes ) : void

Create a new cache driven handler instance.

Parameters

public

open ( $savePath , $sessionName ) : bool

{@inheritdoc}

public

close ( ) : bool

{@inheritdoc}

public

read ( $sessionId ) : string|false

{@inheritdoc}

public

write ( $sessionId , $data ) : bool

{@inheritdoc}

public

destroy ( $sessionId ) : bool

{@inheritdoc}

public

gc ( $lifetime ) : int|false

{@inheritdoc}

public

getCache ( ) : Repository

Get the underlying cache repository.