/** * Prepends 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 prepend * @param Integer $expire The lifespan of this cache value, in seconds * @return \r8\Cache\Suffix Returns a self reference */ public function prepend($key, $value, $expire = 0) { $this->inner->prepend($this->prepareKey($key), $value, $expire); return $this; }
/** * Prepends 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 prepend * @param Integer $expire The lifespan of this cache value, in seconds * @return \r8\Cache\Group Returns a self reference */ public function prepend($key, $value, $expire = 0) { $this->cache->prepend($this->modifyKey($key), $value, $expire); return $this; }
/** * Prepends 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 prepend * @param Integer $expire The lifespan of this cache value, in seconds * @return \r8\Cache\Layered Returns a self reference */ public function prepend($key, $value, $expire = 0) { $this->primary->prepend($key, $value, $expire); $this->secondary->prepend($key, $value, $expire); return $this; }
/** * Prepends a value 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 prepend * @param Integer $expire The lifespan of this cache value, in seconds * @return \r8\Cache\Value Returns a self reference */ public function prepend($value, $expire = 0) { $this->cache->prepend($this->key, $value, $expire); return $this; }