This class is a transparent base class for Cache_Arithmetic and should not be accessed directly.
Kohana Cache Arithmetic Interface, for basic cache integer based arithmetic, addition and subtraction
Class declared in MODPATH/cache/classes/Kohana/Cache/Arithmetic.php on line 14.
Decrements a given value by the step value supplied. Useful for shared counters and other persistent integer based tracking.
string
$id
required - Id of cache entry to decrement int
$step
= integer 1 - Step value to decrement by integer
boolean
public function decrement($id, $step = 1);
Increments a given value by the step value supplied. Useful for shared counters and other persistent integer based tracking.
string
$id
required - Id of cache entry to increment int
$step
= integer 1 - Step value to increment by integer
boolean
public function increment($id, $step = 1);