mixed get(
[string
$type = "general"], string
$key
)
|
|
Get a single item from the cache. Returns the value on success, or false when it's a miss. So, storing booleans in the cache isn't very convenient.
Parameters:
|
string |
$type: |
|
|
string |
$key: |
|
bool set(
[string
$type = "general"], string
$key, mixed
$value
)
|
|
Set a single item in the cache
Parameters:
|
string |
$type: |
|
|
string |
$key: |
|
|
mixed |
$value: |
|
bool setMultiple(
[string
$type = "general"], array
$values
)
|
|
Set multiple items in the cache
Parameters:
|
string |
$type: |
|
|
array |
$values: |
|
Return some basic statistics for the cache..
Trims the cache, if it's getting too large.