Test to see if the cache storage is available.
static boolean
isSupported
()
Redefinition of:
- JCacheStorage::isSupported()
- Test to see if the storage handler is available.
Constructor
JCacheStorageFile
__construct
([array $options = array()])
-
array
$options: Optional parameters
Redefinition of:
- JCacheStorage::__construct()
- Constructor
Clean cache for a group given a mode.
boolean
clean
(string $group, [string $mode = null])
-
string
$group: The cache data group
-
string
$mode: The mode for cleaning cache [group|notgroup] group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group
Redefinition of:
- JCacheStorage::clean()
- Clean cache for a group given a mode.
Garbage collect expired cache data
boolean
gc
()
Redefinition of:
- JCacheStorage::gc()
- Garbage collect expired cache data
Get cached data from a file by id and group
mixed
get
(string $id, string $group, [boolean $checkTime = true])
-
string
$id: The cache data id
-
string
$group: The cache data group
-
boolean
$checkTime: True to verify cache time expiration threshold
Redefinition of:
- JCacheStorage::get()
- Get cached data by id and group
Lock cached item
boolean
lock
(string $id, string $group, integer $locktime)
-
string
$id: The cache data id
-
string
$group: The cache data group
-
integer
$locktime: Cached item max lock time
Redefinition of:
- JCacheStorage::lock()
- Lock cached item
Remove a cached data file by id and group
boolean
remove
(string $id, string $group)
-
string
$id: The cache data id
-
string
$group: The cache data group
Redefinition of:
- JCacheStorage::remove()
- Remove a cached data entry by id and group
Store the data to a file by id and group
boolean
store
(string $id, string $group, string $data)
-
string
$id: The cache data id
-
string
$group: The cache data group
-
string
$data: The data to store in cache
Redefinition of:
- JCacheStorage::store()
- Store the data to cache by id and group
Unlock cached item
boolean
unlock
(string $id, [string $group = null])
-
string
$id: The cache data id
-
string
$group: The cache data group
Redefinition of:
- JCacheStorage::unlock()
- Unlock cached item
Check to make sure cache is still valid, if not, delete it.
boolean
_checkExpire
(string $id, string $group)
-
string
$id: Cache key to expire.
-
string
$group: The cache data group.
Function to strip additional / or \ in a path name
string
_cleanPath
(string $path, [string $ds = DIRECTORY_SEPARATOR])
-
string
$path: The path to clean
-
string
$ds: Directory separator (optional)
Quickly delete a folder of files
boolean
_deleteFolder
(string $path)
-
string
$path: The path to the folder to delete.
Utility function to quickly read the files in a folder.
array
_filesInFolder
(string $path, [string $filter = '.'], [mixed $recurse = false], [boolean $fullpath = false], [array $exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX')], [array $excludefilter = array('^\..*', '.*~')])
-
string
$path: The path of the folder to read.
-
string
$filter: A filter for file names.
-
mixed
$recurse: True to recursively search into sub-folders, or an integer to specify the maximum depth.
-
boolean
$fullpath: True to return the full path to the file.
-
array
$exclude: Array with names of files which should not be shown in the result.
-
array
$excludefilter: Array of folder names to exclude
Utility function to read the folders in a folder.
array
_folders
(string $path, [string $filter = '.'], [mixed $recurse = false], [boolean $fullpath = false], [array $exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX')], [array $excludefilter = array('^\..*')])
-
string
$path: The path of the folder to read.
-
string
$filter: A filter for folder names.
-
mixed
$recurse: True to recursively search into sub-folders, or an integer to specify the maximum depth.
-
boolean
$fullpath: True to return the full path to the folders.
-
array
$exclude: Array with names of folders which should not be shown in the result.
-
array
$excludefilter: Array with regular expressions matching folders which should not be shown in the result.
Get a cache file path from an id/group pair
string
_getFilePath
(string $id, string $group)
-
string
$id: The cache data id
-
string
$group: The cache data group
Inherited Methods
Inherited From JCacheStorage
JCacheStorage::__construct()
JCacheStorage::addIncludePath()
JCacheStorage::clean()
JCacheStorage::gc()
JCacheStorage::get()
JCacheStorage::getAll()
JCacheStorage::getInstance()
JCacheStorage::isSupported()
JCacheStorage::lock()
JCacheStorage::remove()
JCacheStorage::store()
JCacheStorage::test()
JCacheStorage::unlock()
JCacheStorage::_getCacheId()