Class Cache
- Namespace
- Soup
- Assembly
- Soup-3.0.dll
public class Cache : Object, SessionFeature, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Cache
- Implements
- Inherited Members
Constructors
Cache(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Cache(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Cache(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Cache(CreationData data)
Parameters
dataCreationData
Cache(CacheHandle)
protected Cache(CacheHandle handle)
Parameters
handleCacheHandle
Fields
CacheDirPropertyDefinition
public static readonly Property<string?, Cache> CacheDirPropertyDefinition
Field Value
CacheTypePropertyDefinition
public static readonly Property<CacheType, Cache> CacheTypePropertyDefinition
Field Value
Properties
CacheDir
public string? CacheDir { get; }
Property Value
CacheType
public CacheType CacheType { get; }
Property Value
Methods
Clear()
public void Clear()
Dump()
public void Dump()
Flush()
public void Flush()
GetGType()
public static Type GetGType()
Returns
GetMaxSize()
public uint GetMaxSize()
Returns
Load()
public void Load()
New(string?, CacheType)
public static Cache New(string? cacheDir, CacheType cacheType)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed Cache instance for a given pointer.
public static Cache NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Cache and sets the properties specified by the construct arguments.
public static Cache NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetMaxSize(uint)
public void SetMaxSize(uint maxSize)
Parameters
maxSizeuint