/** * Appends a value to the end of an existing cached value. * * If the value doesn't exist, it will be set with the given value * * @param String $key The key for the value * @param mixed $value The value to append * @param Integer $expire The lifespan of this cache value, in seconds * @return \r8\Cache\Suffix Returns a self reference */ public function append($key, $value, $expire = 0) { $this->inner->append($this->prepareKey($key), $value, $expire); return $this; }
/** * Appends a value to the end of an existing cached value. * * If the value doesn't exist, it will be set with the given value * * @param String $key The key for the value * @param mixed $value The value to append * @param Integer $expire The lifespan of this cache value, in seconds * @return \r8\Cache\Group Returns a self reference */ public function append($key, $value, $expire = 0) { $this->cache->append($this->modifyKey($key), $value, $expire); return $this; }
/** * Appends a value to the end of an existing cached value. * * If the value doesn't exist, it will be set with the given value * * @param String $key The key for the value * @param mixed $value The value to append * @param Integer $expire The lifespan of this cache value, in seconds * @return \r8\Cache\Layered Returns a self reference */ public function append($key, $value, $expire = 0) { $this->primary->append($key, $value, $expire); $this->secondary->append($key, $value, $expire); return $this; }
/** * Appends a string to the end of a this value. * * If the value doesn't exist, it will be set with the given value * * @param mixed $value The value to append * @param Integer $expire The lifespan of this cache value, in seconds * @return \r8\Cache\Value Returns a self reference */ public function append($value, $expire = 0) { $this->cache->append($this->key, $value, $expire); return $this; }