dmitry-suffi / redis-session-handler
Обработчик сессий через Redis с механизмом блокировки
Installs: 1 858
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 3
Open Issues: 0
Type:project
README
Description
Used to store php sessions radishes.
The mechanism locks: one is the process of working with the session, the second process is waiting.
Installation
composer require dmitry-suffi/redis-session-handler
Using
$redis = new Redis(); if ($redis->connect('11.111.111.11', 6379) && $redis->select(0)) { $handler = new \suffi\RedisSessionHandler\RedisSessionHandler($redis); session_set_save_handler($handler); } session_start();