Connection.php
2 years ago
Connector.php
2 years ago
Factory.php
2 years ago
LimiterTimeoutException.php
2 years ago
Connection.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Contracts\Redis; |
| 4 | |
| 5 | use Closure; |
| 6 | /** @internal */ |
| 7 | interface Connection |
| 8 | { |
| 9 | /** |
| 10 | * Subscribe to a set of given channels for messages. |
| 11 | * |
| 12 | * @param array|string $channels |
| 13 | * @param \Closure $callback |
| 14 | * @return void |
| 15 | */ |
| 16 | public function subscribe($channels, Closure $callback); |
| 17 | /** |
| 18 | * Subscribe to a set of given channels with wildcards. |
| 19 | * |
| 20 | * @param array|string $channels |
| 21 | * @param \Closure $callback |
| 22 | * @return void |
| 23 | */ |
| 24 | public function psubscribe($channels, Closure $callback); |
| 25 | /** |
| 26 | * Run a command against the Redis database. |
| 27 | * |
| 28 | * @param string $method |
| 29 | * @param array $parameters |
| 30 | * @return mixed |
| 31 | */ |
| 32 | public function command($method, array $parameters = []); |
| 33 | } |
| 34 |