DataCache
Object Hierarchy:
Description:
Namespace: Camel
Package: camel-1.2
Content:
Properties:
- public bool expire_enabled { get; set construct; }
- public string path { get; set construct; }
Creation methods:
Methods:
- public IOStream @get (string path, string key) throws Error
Lookup an item in the cache.
- public IOStream add (string path, string key) throws Error
Add a new item to the cache, returning a IOStream to the new item.
- public void clear (string path)
Clear cache's content in
path
. - public void foreach_remove (string path, DataCacheRemoveFunc func)
Traverses the this sub-cache identified by
path
and callsfunc
for each found file. - public bool get_expire_enabled ()
Gets whether expire of cache data is enabled.
- public string get_filename (string path, string key)
Lookup the filename for an item in the cache
- public unowned string get_path ()
Returns the path to the data cache.
- public int remove (string path, string key) throws Error
Remove/expire a cache item.
- public void set_expire_access (long when)
Set the cache expiration policy for access times.
- public void set_expire_age (long when)
Set the cache expiration policy for aged entries.
- public void set_expire_enabled (bool expire_enabled)
Sets whether expire of cache data is enabled.
- public void set_path (string path)
Sets the path to the data cache.
Inherited Members:
All known members inherited from class GLib.Object