![]() |
![]() |
![]() |
Evolution API Reference: libedataserver, utility library | ![]() |
---|---|---|---|---|
EFileCache; EFileCache* e_file_cache_new (const char *filename); gboolean e_file_cache_remove (EFileCache *cache); gboolean e_file_cache_clean (EFileCache *cache); const char* e_file_cache_get_object (EFileCache *cache, const char *key); GSList* e_file_cache_get_objects (EFileCache *cache); GSList* e_file_cache_get_keys (EFileCache *cache); gboolean e_file_cache_add_object (EFileCache *cache, const char *key, const char *value); gboolean e_file_cache_replace_object (EFileCache *cache, const char *key, const char *new_value); gboolean e_file_cache_remove_object (EFileCache *cache, const char *key); void e_file_cache_freeze_changes (EFileCache *cache); void e_file_cache_thaw_changes (EFileCache *cache); const char* e_file_cache_get_filename (EFileCache *cache);
EFileCache* e_file_cache_new (const char *filename);
Creates a new EFileCache object, which implements a cache of objects, very useful for remote backends.
|
filename where the cache is kept. |
Returns : |
The newly created object. |
gboolean e_file_cache_remove (EFileCache *cache);
Remove the cache from disk.
|
A EFileCache object. |
Returns : |
TRUE if successful, FALSE otherwise. |
gboolean e_file_cache_clean (EFileCache *cache);
Clean up the cache's contents.
|
A EFileCache object. |
Returns : |
TRUE if successful, FALSE otherwise. |
const char* e_file_cache_get_object (EFileCache *cache, const char *key);
|
|
|
|
Returns : |
gboolean e_file_cache_add_object (EFileCache *cache, const char *key, const char *value);
|
|
|
|
|
|
Returns : |
gboolean e_file_cache_replace_object (EFileCache *cache, const char *key, const char *new_value);
|
|
|
|
|
|
Returns : |
gboolean e_file_cache_remove_object (EFileCache *cache, const char *key);
|
|
|
|
Returns : |
void e_file_cache_freeze_changes (EFileCache *cache);
Disables temporarily all writes to disk for the given cache object.
|
An EFileCache object. |
void e_file_cache_thaw_changes (EFileCache *cache);
Enables again writes to disk on every change.
|
An EFileCache object. |
const char* e_file_cache_get_filename (EFileCache *cache);
Gets the name of the file where the cache is being stored.
|
A EFileCache object.
|
Returns : |
The name of the cache. |