Spec-Zone.ru › Laravel 6

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}

RepositorygetCache()

Получить базовое хранилище кэша.

Детали

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/6.x/Illuminate/Session/CacheBasedSessionHandler.html

Spec-Zone.ru

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