Camel.DataCache – camel-1.2 Reference Manual
Packages
camel-1.2
Camel
DataCache
expire_enabled
path
DataCache
@get
add
clear
foreach_remove
get_expire_enabled
get_filename
get_path
remove
set_expire_access
set_expire_age
set_expire_enabled
set_path
DataCache
Object Hierarchy:
Description:
[
CCode
( type_id =
"camel_data_cache_get_type ()"
) ]
public
class
DataCache
:
Object
Namespace:
Camel
Package:
camel-1.2
Content:
Properties:
public
bool
expire_enabled
{
get
;
set
construct
; }
Expire Enabled
public
string
path
{
get
;
set
construct
; }
Path
Creation methods:
public
DataCache
(
string
path)
throws
Error
Create a new data cache.
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 calls
func
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
(
time_t
when)
Set the cache expiration policy for access times.
public
void
set_expire_age
(
time_t
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
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref