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)
Создать новый экземпляр обработчика, использующего кэш.
open($savePath, $sessionName)
{@inheritdoc}
close()
{@inheritdoc}
read($sessionId)
{@inheritdoc}
write($sessionId, $data)
{@inheritdoc}
destroy($sessionId)
{@inheritdoc}
gc($lifetime)
{@inheritdoc}
Repository getCache()
Получить базовый репозиторий кэша.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/7.x/Illuminate/Session/CacheBasedSessionHandler.html