\ManaPHP\Caching\MCacheArrCache

Summary

Methods
Properties
Constants
__construct()
get()
No public properties found
No constants found
No protected methods found
$_ttl
$_last_time
$_cache_1
$_cache_m
N/A
No private methods found
No private properties found
N/A

Properties

$_ttl

$_ttl : integer

Type

integer

$_last_time

$_last_time : integer

Type

integer

$_cache_1

$_cache_1 : array

Type

array

$_cache_m

$_cache_m : array

Type

array

Methods

__construct()

__construct(integer  $ttl = 1, string  $prefix = null) 

Parameters

integer $ttl
string $prefix

get()

get(string  $key, callable  $callback, integer  $ttl = null) : mixed

Parameters

string $key
callable $callback
integer $ttl

Returns

mixed