Cache.this

Creates a new #SoupCache.

class Cache
this

Parameters

cacheDir string

the directory to store the cached data, or null 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 null.

cacheType soup.types.CacheType

the #SoupCacheType of the cache

Return Value

a new #SoupCache