/** * Devuelve un atributo en cache a nivel aplicacion. Si no existe devuelve NULL. * @param string $key * @return data */ public function getAttribute($key) { return $this->cache->get($this->prefixApp . $key); }
/** * Devuelve un valor guardado en cache o null si no existe * @param string $key */ public function get($key) { return $this->store->get($this->realKey($key)); }