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