\PhalApi_Cache_None

PhalApi_Cache_None 空缓存 - NULL-Object空对象模式

Summary

Methods
Properties
Constants
set()
get()
delete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties 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