CacheBasedSessionHandler
class CacheBasedSessionHandler implements SessionHandlerInterface (View source)
Свойства
| protected Репозиторий | $cache | Экземпляр репозитория кэша. | |
| protected int | $minutes | Количество минут для хранения данных в кэше. |
Методы
| void | __construct(Репозиторий $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} | |
| Репозиторий | getCache()
Получить базовый репозиторий кэша. |
Подробности
void __construct(Репозиторий $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}
Репозиторий getCache()
Получить базовый репозиторий кэша.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Session/CacheBasedSessionHandler.html