soup.cache
Module for [Cache] class
Types 3
File-based cache for HTTP resources.
Methods
CacheGidBuilder builder()Get builder for [soup.cache.Cache] Returns: New builder objectstring 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(string cacheDir, soup.types.CacheType cacheType)Creates a new #SoupCache.classCacheGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, soup.session_feature.SessionFeatureGidBuilderImpl!T
Methods
T cacheDir(string propval)Set `cacheDir` property. Params: propval = The directory to store the cache files. Returns: Builder instance for fluent chainingT cacheType(soup.types.CacheType propval)Set `cacheType` property. Params: propval = Whether the cache is private or shared. Returns: Builder instance for fluent chaining