| 1 | <?php |
||
| 17 | class Redis implements Handler |
||
| 18 | { |
||
| 19 | use HandlerTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var \Redis |
||
| 23 | */ |
||
| 24 | protected $driver; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Redis session handler constructor. |
||
| 28 | * |
||
| 29 | * @param \Redis $driver |
||
| 30 | */ |
||
| 31 | public function __construct(\Redis $driver) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | * |
||
| 39 | * @throws \RuntimeException |
||
| 40 | */ |
||
| 41 | public function open($savePath, $sessionName) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function close() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | public function read($sessionId) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | public function write($sessionId, $sessionData) |
||
| 76 | |||
| 77 | /** |
||
| 78 | * {@inheritdoc} |
||
| 79 | */ |
||
| 80 | public function destroy($sessionId) |
||
| 86 | |||
| 87 | /** |
||
| 88 | * {@inheritdoc} |
||
| 89 | * |
||
| 90 | * @SuppressWarnings(PMD.ShortMethodName) |
||
| 91 | */ |
||
| 92 | public function gc($maxLifetime) |
||
| 96 | } |
||
| 97 |