mirror of
https://github.com/elyby/accounts.git
synced 2024-12-31 01:20:40 +05:30
20 lines
397 B
PHP
20 lines
397 B
PHP
|
<?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 = []);
|
||
|
|
||
|
}
|