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