Table of Contents

Class MemoryCacheService

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll
public class MemoryCacheService
Inheritance
MemoryCacheService
Inherited Members
Extension Methods

Fields

Instance

public static MemoryCacheService Instance

Field Value

MemoryCacheService

Methods

Get(string)

public object Get(string key)

Parameters

key string

Returns

object

Get(string, Func<object>)

public object Get(string key, Func<object> ifNoExistFunc)

Parameters

key string
ifNoExistFunc Func<object>

Returns

object

HasKey(string)

public bool HasKey(string key)

Parameters

key string

Returns

bool

Store(string, object)

public void Store(string key, object value)

Parameters

key string
value object