Exemple #1
0
 /**
  * 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);
 }
Exemple #2
0
 public function delete($key)
 {
     return Connection::get()->hdel(App::get()->shortName . $this->key, key);
 }