Database
class Database extends Contract
Methods
void
set(string $cacheName, mixed $contents)
Create a new cache files/value
mixed
get(string $cacheName, string $callBack = '')
Get cache value
bool
put(string $cacheName, mixed $contents)
Update cache value
void
destroy(string $cacheName)
Delete cache
void
purge()
Make cache clean as soon as posible
array
getList()
Get cache as list
string
getPath()
Get path or key of cache
bool
isExists(string $cacheName)
No description
__construct(array $expire)
Register all options
isExpire(string $cacheName)
No description
void
putIfExpire(string $cacheName, $contents)
Update|Create data if expired
Details
at line 39
void
set(string $cacheName, mixed $contents)
Create a new cache files/value
at line 61
mixed
get(string $cacheName, string $callBack = '')
Get cache value
at line 99
bool
put(string $cacheName, mixed $contents)
Update cache value
at line 134
void
destroy(string $cacheName)
Delete cache
at line 147
void
purge()
Make cache clean as soon as posible
at line 167
array
getList()
Get cache as list
at line 157
string
getPath()
Get path or key of cache
at line 182
bool
isExists(string $cacheName)
No description
in
Contract at line 81
string
getError()
No description
at line 26
__construct(array $expire)
Register all options
at line 70
isExpire(string $cacheName)
No description
at line 121
void
putIfExpire(string $cacheName, $contents)
Update|Create data if expired