API documentation :: Docs For Class arbitCache
Packages:Interfaces:
Classes:
|
Core::arbitCacheClass arbitCacheArbit simple abstract cache handler Provides simple cache handling with support for TTL of cache items. Arbit simple abstract cache handler Provides simple cache handling with support for TTL of cache items.
Descendants
Constants
Member Variables
Method Summary
MethodsaddCache
void
addCache(
string
$name
, string
$path
, [int
$ttl
= 3600] )
Add a new cache Add a new cache specified by its name. and you may optionally specify a TTL for cache items. to 3600 seconds (which is one hour). Add a new cache Add a new cache specified by its name. Each cache requires a basepath and you may optionally specify a TTL for cache items. The TTL defaults to 3600 seconds (which is one hour). You may specify arbitCacheRegistry::getCache()->INFINITE as a TTL, so that the cache will never tie out. 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:
Redefined in descendants as:
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:
Redefined in descendants as:
get
mixed
get(
string
$cache
, string
$id
)
Get cache item from cache by its ID Get cache item from cache by its ID Parameters:
Redefined in descendants as:
getCacheList
array
getCacheList(
)
Get cache list Get cache list Get list of registered caches 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:
Redefined in descendants as:
Documentation generated on Mon, 05 Apr 2010 14:01:38 +0200 by phpDocumentor 1.4.3
|