Class FileCache
A cache service that stored data in files
- Wei\Base
-
Wei\BaseCache
-
Wei\FileCache
Direct known subclasses
Wei\PhpFileCache
public
|
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
integer|false
|
|
public
boolean
|
|
public
string
|
|
public
|
|
public
string
|
|
protected
resource|false
|
|
protected
false|array
|
#
readAndVerify( resource $handle, string $file )
Read file by handle and verify if content is expired |
protected
array
|
|
protected
string
|
|
protected
boolean
|
#
writeAndRelease( resource $handle, string $content, boolean $rewrite = false )
Write content, release lock and close file |
__invoke(),
decr(),
getFileContent(),
getMulti(),
getNamespace(),
processGetResult(),
setMulti(),
setNamespace()
|
__call(),
__get(),
getOption(),
setOption()
|
protected
string
|
$dir
The cache directory |
#
'cache'
|
protected
array
|
$illegalChars
Illegal chars as the name of cache, would be replaced to "_" |
#
array(
'\\', '/', ':', '*', '?', '"', '<', '>', '|', "\r", "\n"
)
|
protected
string
|
$ext
The cache file extension |
#
'cache'
|
$namespace
|
$providers,
$wei
|