/** * Guarda un atributo en cache a nivel aplicacion. Por tiempo indefinido. * @param string $key * @param data $value */ public function setAttribute($key, $value) { return $this->cache->store($this->prefixApp . $key, $value); }
/** * Almacena un valor en cache asociado a una clave * @param string $key * @param type $data * @param int $ttl */ public function store($key, $data, $ttl = 0) { return $this->store->store($this->realKey($key), $data, $ttl); }