Table of Contents

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

constructArguments ConstructArgument[]

Cache(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Cache(CreationData data)

Parameters

data CreationData

Cache(CacheHandle)

protected Cache(CacheHandle handle)

Parameters

handle CacheHandle

Fields

CacheDirPropertyDefinition

public static readonly Property<string?, Cache> CacheDirPropertyDefinition

Field Value

Property<string, Cache>

CacheTypePropertyDefinition

public static readonly Property<CacheType, Cache> CacheTypePropertyDefinition

Field Value

Property<CacheType, Cache>

Properties

CacheDir

public string? CacheDir { get; }

Property Value

string

CacheType

public CacheType CacheType { get; }

Property Value

CacheType

Methods

Clear()

public void Clear()

Dump()

public void Dump()

Flush()

public void Flush()

GetGType()

public static Type GetGType()

Returns

Type

GetMaxSize()

public uint GetMaxSize()

Returns

uint

Load()

public void Load()

New(string?, CacheType)

public static Cache New(string? cacheDir, CacheType cacheType)

Parameters

cacheDir string
cacheType CacheType

Returns

Cache

NewFromPointer(nint, bool)

Creates a new managed Cache instance for a given pointer.

public static Cache NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Cache

NewWithProperties(ConstructArgument[])

Creates a new Cache and sets the properties specified by the construct arguments.

public static Cache NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Cache

SetMaxSize(uint)

public void SetMaxSize(uint maxSize)

Parameters

maxSize uint