Class Kohana_Cache_Arithmetic

Kohana_Cache_Arithmetic

Kohana Cache Arithmetic Interface, for basic cache integer based arithmetic, addition and subtraction

package
Kohana/Cache
category
Base
author
Kohana Team
copyright
(c) Kohana Team
license
https://koseven.ga/LICENSE.md
since
3.2.0


Constants

  • None

Properties

  • None

Methods

abstract public decrement(string $id [, int $step = integer 1 ] ) (defined in Kohana_Cache_Arithmetic)

Decrements a given value by the step value supplied. Useful for shared counters and other persistent integer based tracking.

Parameters

  • string $id required - Id of cache entry to decrement
  • int $step = integer 1 - Step value to decrement by

Return Values

  • integer
  • boolean

Source Code

public function decrement($id, $step = 1);

abstract public increment(string $id [, int $step = integer 1 ] ) (defined in Kohana_Cache_Arithmetic)

Increments a given value by the step value supplied. Useful for shared counters and other persistent integer based tracking.

Parameters

  • string $id required - Id of cache entry to increment
  • int $step = integer 1 - Step value to increment by

Return Values

  • integer
  • boolean

Source Code

public function increment($id, $step = 1);

Do you want to contribute to Koseven?

We need YOUR help!

This project is open source. What does this mean? YOU can help:
  • Found a bug? Report it on Github
  • Need a feature? Add it Here
  • Want to help? Join the Forum
Go to Github