Methods summary
public
integer|false
|
#
incr( string $key, integer $offset = 1 )
Increment an item
Parameters
- $key
- The name of item
- $offset
- The value to increased
Returns
integer|false Returns the new value on success, or false on failure
|
public
integer|false
|
#
decr( string $key, integer $offset = 1 )
Decrement an item
Parameters
- $key
- The name of item
- $offset
- The value to be decreased
Returns
integer|false Returns the new value on success, or false on failure
|
public
mixed
|
#
get( string $key )
Retrieve an item
Parameters
Returns
mixed
|
public
boolean
|
#
set( string $key, mixed $value )
Store an item
Parameters
- $key
- The name of item
- $value
- The value of item
Returns
boolean
|
public
boolean
|
#
exits( string $key )
Check if an item is exists
Check if an item is exists
Parameters
Returns
boolean
|
public
boolean
|
#
remove( string $key )
Remove an item
Parameters
Returns
boolean
|