MBrace.Runtime


InMemoryCache

Namespace: MBrace.Runtime.Utils

In-Memory caching mechanism using System.Runtime.Caching.MemoryCache

Instance members

Instance memberDescription
Add(key, value)
Signature: (key:string * value:obj) -> bool

Try adding a new key to cache.

ContainsKey(key)
Signature: key:string -> bool

Checks if cache contains provided key.

Delete(key)
Signature: key:string -> bool

Delete existing key from cache.

Get(key)
Signature: key:string -> obj

Look up cached entry by key.

Name
Signature: string

Cache instance identifier

CompiledName: get_Name

TryFind(key)
Signature: key:string -> obj option

Look up cached entry by key.

Static members

Static memberDescription
Create(...)
Signature: (name:string option * physicalMemoryLimitPercentage:int option * pollingInterval:TimeSpan option) -> InMemoryCache

Creates a new in-memory cache instance.

Fork me on GitHub