Exemple #1
0
 /**
  * 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;
 }
Exemple #2
0
 /**
  * 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;
 }
Exemple #3
0
 /**
  * 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;
 }
Exemple #4
0
 /**
  * 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;
 }