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