Используем в качестве компонента для соединения с редисом библиотеку Predis

This commit is contained in:
ErickSkrauch
2016-11-27 17:41:39 +03:00
parent bec00df77b
commit 744ec9520a
13 changed files with 472 additions and 22 deletions

View 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 = []);
}