| 1 | <?php |
||
| 14 | class UberRedis implements ResourceInterface, UberStorageInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var \Redis |
||
| 18 | */ |
||
| 19 | private $redis; |
||
| 20 | |||
| 21 | public function __construct(\Redis $redis) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function setConnection($host, $port) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return Redis |
||
| 36 | */ |
||
| 37 | public function getRedis() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function addItem($key, $value, $expiration = null) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | public function getItem($key) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritdoc} |
||
| 67 | */ |
||
| 68 | public function getAllKeys() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * {@inheritdoc} |
||
| 75 | */ |
||
| 76 | public function deleteItem($key) |
||
| 82 | |||
| 83 | /** |
||
| 84 | * {@inheritdoc} |
||
| 85 | */ |
||
| 86 | public function dropCache() |
||
| 90 | |||
| 91 | /** |
||
| 92 | * {@inheritdoc} |
||
| 93 | */ |
||
| 94 | public function __toString() |
||
| 98 | |||
| 99 | /** |
||
| 100 | * {@inheritdoc} |
||
| 101 | */ |
||
| 102 | public function isFresh($timestamp) |
||
| 105 | |||
| 106 | /** |
||
| 107 | * {@inheritdoc} |
||
| 108 | */ |
||
| 109 | public function getResource() |
||
| 112 | } |
||
|
1 ignored issue
–
show
|
|||
| 113 |