Blame view

public/vendor/illuminate/contracts/Redis/Connection.php 782 Bytes
86143e36f   Андрей Ларионов   Коммит вторник
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  <?php
  
  namespace Illuminate\Contracts\Redis;
  
  use Closure;
  
  interface Connection
  {
      /**
       * Subscribe to a set of given channels for messages.
       *
       * @param  array|string  $channels
       * @param  \Closure  $callback
       * @return void
       */
      public function subscribe($channels, Closure $callback);
  
      /**
       * Subscribe to a set of given channels with wildcards.
       *
       * @param  array|string  $channels
       * @param  \Closure  $callback
       * @return void
       */
      public function psubscribe($channels, Closure $callback);
  
      /**
       * Run a command against the Redis database.
       *
       * @param  string  $method
       * @param  array  $parameters
       * @return mixed
       */
      public function command($method, array $parameters = []);
  }