parent-instanceThe directory to store the cache files.
Its value is a string, or #f.
It can only be set when the object is made, with #:cache-dir.
Whether the cache is private or shared.
Its value is a <SoupCacheType> (or, to set it,
one of its symbols).
It can only be set when the object is made, with #:cache-type.
Will remove all entries in the self plus all the cache files.
This is not thread safe and must be called only from the thread that
created the Cache
Passed: a <SoupCache>.
Synchronously writes the cache index out to disk.
Contrast with Cache.flush, which writes pending cache
entries to disk.
You must call this before exiting if you want your cache data to persist between sessions.
This is not thread safe and must be called only from the thread that
created the Cache
Passed: a <SoupCache>.
Forces all pending writes in the self to be committed to disk.
For doing so it will iterate the
<GMainContext> associated with
self’s session as long as needed.
Contrast with Cache.dump, which writes out the cache index file.
Passed: a <SoupCache>.
Gets the maximum size of the cache.
Passed: a <SoupCache>.
Returned: an unsigned 32-bit integer.
the maximum size of the cache, in bytes.
Loads the contents of self’s index into memory.
This is not thread safe and must be called only from the thread that
created the Cache
Passed: a <SoupCache>.
Creates a new <SoupCache>.
Passed: a string, or #f.
the directory to store the cached data, or #f to use the default
one. Note that since the cache isn’t safe to access for multiple
processes at once, and the default directory isn’t namespaced by
process, clients are strongly discouraged from passing #f.
Passed: a <SoupCacheType>, or one of its
symbols.
the <SoupCacheType> of the cache
Returned: a <SoupCache>.
a new <SoupCache>
Sets the maximum size of the cache.
Passed: a <SoupCache>.
Passed: an unsigned 32-bit integer.
the maximum size of the cache, in bytes
To override it in a new class, give register-type #:vfuncs
`((get-cacheability . ,procedure)). The procedure is called as
(procedure self msg) ⇒ %return.
Passed: the class whose implementation to call:
<SoupCache>, or a class that derives from it, or its
GType number.
Passed: a <SoupCache>.
Passed: a <SoupMessage>.
Returned: a <SoupCacheability>.