soup.cache

Module for [Cache] class

Types 3

File-based cache for HTTP resources.

Methods
GType _gType() @property
Cache self()Returns `this`, for use in `with` statements.
CacheGidBuilder builder()Get builder for [soup.cache.Cache] Returns: New builder object
string cacheDir() @propertyGet `cacheDir` property. Returns: The directory to store the cache files.
soup.types.CacheType cacheType() @propertyGet `cacheType` property. Returns: Whether the cache is private or shared.
void clear()Will remove all entries in the cache plus all the cache files.
void dump()Synchronously writes the cache index out to disk.
void flush()Forces all pending writes in the cache to be committed to disk.
uint getMaxSize()Gets the maximum size of the cache. Returns: the maximum size of the cache, in bytes.
void load()Loads the contents of cache's index into memory.
void setMaxSize(uint maxSize)Sets the maximum size of the cache.
Constructors
this(void * ptr, Flag!"Take" take)
this(string cacheDir, soup.types.CacheType cacheType)Creates a new #SoupCache.
Methods
T cacheDir(string propval)Set `cacheDir` property. Params: propval = The directory to store the cache files. Returns: Builder instance for fluent chaining
T cacheType(soup.types.CacheType propval)Set `cacheType` property. Params: propval = Whether the cache is private or shared. Returns: Builder instance for fluent chaining

Fluent builder for [soup.cache.Cache]

Methods