1 | <?php |
||
25 | class PredisStore extends AbstractRedisStore |
||
26 | { |
||
27 | /** |
||
28 | * Creates a store backed by a Predis client. |
||
29 | * |
||
30 | * If no client is passed, a new one is created using the default server |
||
31 | * "127.0.0.1" and the default port 6379. |
||
32 | * |
||
33 | * @param ClientInterface|null $client The client used to connect to Redis. |
||
34 | */ |
||
35 | 82 | public function __construct(ClientInterface $client = null) |
|
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 39 | protected function clientNotFoundValue() |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 35 | protected function clientGet($key) |
|
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 34 | protected function clientGetMultiple(array $keys) |
|
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 54 | protected function clientSet($key, $value) |
|
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 8 | protected function clientRemove($key) |
|
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | 29 | protected function clientExists($key) |
|
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | 82 | protected function clientClear() |
|
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | 4 | protected function clientKeys() |
|
103 | } |
||
104 |