class Illuminate / Session / CacheBasedSessionHandler
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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

{@inheritdoc}

public

write ( $sessionId , $data ) : bool

{@inheritdoc}

public

destroy ( $sessionId ) : bool

{@inheritdoc}

public

gc ( $lifetime ) : int

{@inheritdoc}

public

getCache ( ) : Repository

Get the underlying cache repository.