API documentation :: Docs For Class arbitMemoryCache
Packages:Interfaces:
Classes:
|
Core::arbitMemoryCacheClass arbitMemoryCacheArbit simple file based cache handler Provides simple cache handling with support for TTL of cache items. Arbit simple file based cache handler Provides simple cache handling with support for TTL of cache items. Currently everything is just stored in the filesystem. Since we store PHP files an opcode cache will keep the most recent items in the memory. We may want to put some cache items into memcache or similar shared memory caches at some point in the future. We may want to use the cache component from the eZ Components at this point, which will pprovide such a mutilevel caching since its 2008.1 release. arbitCache | --arbitMemoryCacheAuthor(s):
Inherited Constants
Member Variables
Inherited Member Variables
Method Summary
Inherited Methods
Methods__construct
void
__construct(
[string
$path
= null] )
Construct cache from cache root Construct cache from cache root If no explicit cache root is provided, the default location provided in the arbit constant ARBIT_CACHE_PATH is used.; Parameters:
cache
void
cache(
string
$cache
, string
$id
, mixed
$item
)
Cache item Cache item specified with a (hopefully unique) identifier in specified cache. Cache item Cache item specified with a (hopefully unique) identifier in specified cache. Cacheable are all PHP scalar values, arrays and all object implementing arbitCacheable, which especially means, that all arbitBaseStruct extending objects are cacheable. Parameters:
Redefinition of:
clearCache
void
clearCache(
string
$cache
)
Clear cache Clear the cache specified by the cache ID completely. be purged. Clear cache Clear the cache specified by the cache ID completely. All contents will be purged. Parameters:
Redefinition of:
get
mixed
get(
string
$cache
, string
$id
)
Get cache item from cache by its ID Get cache item from cache by its ID Parameters:
Redefinition of:
purge
void
purge(
string
$cache
, string
$id
)
Remove item from cache Remove the item specified by its ID from the specified cache. Remove item from cache Remove the item specified by its ID from the specified cache. Parameters:
Redefinition of:
Documentation generated on Mon, 05 Apr 2010 14:02:04 +0200 by phpDocumentor 1.4.3
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||