CacheBasedSessionHandler (Session)

CacheBasedSessionHandler

class CacheBasedSessionHandler implements SessionHandlerInterface (View source)

Methods

void __construct( Repository $cache, int $minutes)

Create a new cache driven handler instance.

open($savePath, $sessionName)

[email protected]}

close()

[email protected]}

read($sessionId)

[email protected]}

write($sessionId, $data)

[email protected]}

destroy($sessionId)

[email protected]}

gc($lifetime)

[email protected]}

Repository getCache()

Get the underlying cache repository.

Details

void __construct( Repository $cache, int $minutes)

Create a new cache driven handler instance.

Parameters

Repository $cache
int $minutes

Return Value

void

open($savePath, $sessionName)

Parameters

$savePath
$sessionName

read($sessionId)

Parameters

$sessionId

write($sessionId, $data)

Parameters

$sessionId
$data

destroy($sessionId)

Parameters

$sessionId

gc($lifetime)

Parameters

$lifetime

Repository getCache()

Get the underlying cache repository.

Return Value

Repository

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Session/CacheBasedSessionHandler.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部