1 | <?php |
||
5 | class Client extends \Predis\Client implements ClientInterface |
||
6 | { |
||
7 | /** |
||
8 | * {@inheritdoc} |
||
9 | */ |
||
10 | 4 | public function __construct($parameters = null, $options = null) |
|
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | 1 | public function pop(string $key): ?string |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 2 | public function push(string $key, ...$values): int |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 2 | public function count(string $key): int |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 2 | public function remove(string $key): int |
|
50 | |||
51 | /** |
||
52 | * Creates a Redis command with the specified arguments and sends a request to the server. |
||
53 | * |
||
54 | * @param string $command the command ID |
||
55 | * @param array $arguments the arguments for the command |
||
56 | * |
||
57 | * @return mixed |
||
58 | */ |
||
59 | 2 | protected function call($command, array $arguments = []) |
|
63 | } |
||
64 |