Cache.this

Creates a new #SoupCache.

  1. this(SoupCache* soupCache, bool ownedRef)
  2. this(string cacheDir, SoupCacheType cacheType)
    class Cache
    this
    (
    string cacheDir
    ,
    SoupCacheType cacheType
    )

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 SoupCacheType

the #SoupCacheType of the cache

Return Value

a new #SoupCache

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.34