示例#1
0
文件: App.php 项目: mpf-soft/mpf
 /**
  * Shortcut to Redis database connection
  * @param string[] $options Optional; Some config options can be set and it will return a specific instance with that config applied.
  * @return \Predis\Client
  */
 public function redis($options = array())
 {
     return Connection::get($options);
 }
示例#2
0
文件: Cache.php 项目: mpf-soft/mpf
 public function delete($key)
 {
     return Connection::get()->hdel(App::get()->shortName . $this->key, key);
 }