increment() public method

Increment value of the key
public increment ( string $key, mixed $by_value = 1, integer $limit_keys_count, integer $ttl = 259200 ) : integer | string | array
$key string
$by_value mixed if stored value is an array: if $by_value is a value in array, new element will be pushed to the end of array, if $by_value is a key=>value array, new key=>value pair will be added (or updated)
$limit_keys_count integer - maximum count of elements (used only if stored value is array)
$ttl integer - set time to live for key
return integer | string | array new value of key
Example #1
0
 public function WriteError(Error $Error)
 {
     $this->storage->increment($this->cache_key, array($Error), $this->errors_count_limit, $this->log_ttl);
 }