Top | ![]() |
![]() |
![]() |
![]() |
SoupCache * | soup_cache_new () |
void | soup_cache_flush () |
void | soup_cache_clear () |
void | soup_cache_dump () |
void | soup_cache_load () |
guint | soup_cache_get_max_size () |
void | soup_cache_set_max_size () |
gchar * | cache-dir | Read / Write / Construct Only |
SoupCacheType | cache-type | Read / Write / Construct Only |
SoupCache * soup_cache_new (const char *cache_dir
,SoupCacheType cache_type
);
Creates a new SoupCache.
cache_dir |
the directory to store the cached data, or |
|
cache_type |
the SoupCacheType of the cache |
Since 2.34
void
soup_cache_flush (SoupCache *cache
);
This function will force all pending writes in the cache
to be
committed to disk. For doing so it will iterate the GMainContext
associated with cache
's session as long as needed.
Since 2.34
void
soup_cache_clear (SoupCache *cache
);
Will remove all entries in the cache
plus all the cache files
associated with them.
Since 2.34
“cache-dir”
property“cache-dir” gchar *
The directory to store the cache files.
Flags: Read / Write / Construct Only
Default value: NULL
“cache-type”
property“cache-type” SoupCacheType
Whether the cache is private or shared.
Flags: Read / Write / Construct Only
Default value: SOUP_CACHE_SINGLE_USER