\PhalApi_Cache

Cache Interface

Summary

Methods
Constants
set()
get()
delete()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

set()

set(string  $key, mixed  $value, integer  $expire = 600) 

Set cache

Parameters

string $key

cache key

mixed $value

cache content data

integer $expire

cache expire time, unit: seconds, not timestamp

get()

get(string  $key) : mixed

Get cache

Parameters

string $key

cache key

Returns

mixed —

return null when fail

delete()

delete(string  $key) 

Delete cache

Parameters

string $key