-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/5.6' into rename-index
- Loading branch information
Showing
7 changed files
with
115 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 = []); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.