Class FileStorage
Cache file storage.
- Object
-
FileStorage implements ICacheStorage
Direct Known Subclasses
TemplateCacheStorage
public
|
#
__construct(
$dir,
Context
$context = NULL
)
|
public
mixed|NULL
|
#
read(
string
$key
)
Read from cache. |
public
void
|
#
write(
string
$key,
mixed
$data,
array
$dp
)
Writes item into the cache. Writes item into the cache. Parameters$key string key$data mixed data$dp array dependenciesImplementation of |
public
void
|
#
remove(
string
$key
)
Removes item from the cache. |
public
void
|
#
clean(
array
$conds
)
Removes items from the cache by conditions & garbage collector. Removes items from the cache by conditions & garbage collector. Parameters$conds array conditionsImplementation of |
protected
array|NULL
|
#
readMeta(
string
$file,
int
$lock
)
Reads cache data from disk. Reads cache data from disk. Parameters$file string file path$lock int lock mode |
protected
mixed
|
#
readData(
array
$meta
)
Reads cache data from disk and closes cache file handle. Reads cache data from disk and closes cache file handle. Parameters$meta array |
protected
string
|
#
getCacheFile(
string
$key
)
Returns file name. Returns file name. Parameters$key string |
protected
ICacheJournal
|
#
getJournal(
)
|
Methods Inherited From Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()