E.FileCache – libebackend-1.2 Reference Manual
Packages
libebackend-1.2
E
FileCache
filename
FileCache
add_object
clean
freeze_changes
get_filename
get_keys
get_object
get_objects
remove
remove_object
replace_object
thaw_changes
FileCache
Object Hierarchy:
Description:
[
CCode
( type_id =
"e_file_cache_get_type ()"
) ]
public
class
FileCache
:
Object
Namespace:
E
Package:
libebackend-1.2
Content:
Properties:
public
string
filename
{
get
;
construct
; }
The filename of the cache.
Creation methods:
public
FileCache
(
string
filename)
Creates a new
FileCache
object, which implements a cache of objects.
Methods:
public
bool
add_object
(
string
key,
string
value)
Adds a new
key
/
value
entry to
this
.
public
bool
clean
()
Clean up the cache's contents.
public
void
freeze_changes
()
Disables temporarily all writes to disk for
this
.
public
unowned
string
get_filename
()
Gets the name of the file where the cache is being stored.
public
SList
<
unowned
string
>
get_keys
()
Returns a list of keys in
this
.
public
unowned
string
?
get_object
(
string
key)
Returns the object corresponding to
key
.
public
SList
<
unowned
string
>
get_objects
()
Returns a list of objects in
this
.
public
bool
remove
()
Remove the cache from disk.
public
bool
remove_object
(
string
key)
Removes the object corresponding to
key
from
this
.
public
bool
replace_object
(
string
key,
string
new_value)
Replaces the object corresponding to
key
with
new_value
.
public
void
thaw_changes
()
Reverts the affects of
freeze_changes
.
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