CacheBasedSessionHandler
класс CacheBasedSessionHandler реализует SessionHandlerInterface (Просмотр исходного кода)
Свойства
| protected Repository | $cache | Экземпляр репозитория кэша. |
|
| protected int | $minutes | Количество минут для хранения данных в кэше. |
Методы
| void |
__construct(Repository $cache, int $minutes)
Создать новый экземпляр обработчика, работающего с кэшем. |
|
| bool |
open($savePath, $sessionName)
{@inheritdoc} |
|
| bool |
close()
{@inheritdoc} |
|
| string|false |
read($sessionId)
{@inheritdoc} |
|
| bool |
write($sessionId, $data)
{@inheritdoc} |
|
| bool |
destroy($sessionId)
{@inheritdoc} |
|
| int|false |
gc($lifetime)
{@inheritdoc} |
|
| Repository |
getCache()
Получить базовый репозиторий кэша. |
Подробности
void __construct(Repository $cache, int $minutes)
Создать новый экземпляр обработчика, работающего с кэшем.
bool open($savePath, $sessionName)
{@inheritdoc}
bool close()
{@inheritdoc}
string|false read($sessionId)
{@inheritdoc}
bool write($sessionId, $data)
{@inheritdoc}
bool destroy($sessionId)
{@inheritdoc}
int|false gc($lifetime)
{@inheritdoc}
Repository getCache()
Получить базовый репозиторий кэша.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Session/CacheBasedSessionHandler.html