| 1 | <?php |
||
| 17 | class Memcached implements Handler |
||
| 18 | { |
||
| 19 | use HandlerTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var \Memcached |
||
| 23 | */ |
||
| 24 | protected $driver; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Memcached session handler constructor. |
||
| 28 | * |
||
| 29 | * @param \Memcached $driver |
||
| 30 | */ |
||
| 31 | public function __construct(\Memcached $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) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | public function write($sessionId, $sessionData) |
||
| 71 | |||
| 72 | /** |
||
| 73 | * {@inheritdoc} |
||
| 74 | */ |
||
| 75 | public function destroy($sessionId) |
||
| 79 | |||
| 80 | /** |
||
| 81 | * {@inheritdoc} |
||
| 82 | * |
||
| 83 | * @SuppressWarnings(PMD.ShortMethodName) |
||
| 84 | */ |
||
| 85 | public function gc($maxLifetime) |
||
| 89 | } |
||
| 90 |