Spec-Zone.ru › Laravel 4.2

CacheBasedSessionHandler

class CacheBasedSessionHandler implements SessionHandlerInterface (View source)

Свойства

protected Repository $cache Экземпляр репозитория кэша.
protected int $minutes Количество минут для хранения данных в кэше.

Методы

void __construct(Repository $cache, int $minutes)

Создать новый экземпляр обработчика, использующего кэш.

open($savePath, $sessionName)

{@inheritDoc}

close()

{@inheritDoc}

read($sessionId)

{@inheritDoc}

write($sessionId, $data)

{@inheritDoc}

destroy($sessionId)

{@inheritDoc}

gc($lifetime)

{@inheritDoc}

Repository getCache()

Получить базовый репозиторий кэша.

Подробности

void __construct(Repository $cache, int $minutes)

Создать новый экземпляр обработчика, использующего кэш.

Параметры

Repository $cache
int $minutes

Возвращаемое значение

void

open($savePath, $sessionName)

{@inheritDoc}

Параметры

$savePath
$sessionName

close()

{@inheritDoc}

read($sessionId)

{@inheritDoc}

Параметры

$sessionId

write($sessionId, $data)

{@inheritDoc}

Параметры

$sessionId
$data

destroy($sessionId)

{@inheritDoc}

Параметры

$sessionId

gc($lifetime)

{@inheritDoc}

Параметры

$lifetime

Repository getCache()

Получить базовый репозиторий кэша.

Возвращаемое значение

Repository

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API