mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Используем в качестве компонента для соединения с редисом библиотеку Predis
This commit is contained in:
19
common/components/Redis/ConnectionInterface.php
Normal file
19
common/components/Redis/ConnectionInterface.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace common\components\Redis;
|
||||
|
||||
interface ConnectionInterface {
|
||||
|
||||
/**
|
||||
* @return ConnectionInterface
|
||||
*/
|
||||
public function getConnection();
|
||||
|
||||
/**
|
||||
* @param string $name Command, that should be executed
|
||||
* @param array $params Arguments for this command
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function executeCommand(string $name, array $params = []);
|
||||
|
||||
}
|
Reference in New Issue
Block a user