Edit

Share via


IGrainDirectoryCache Interface

Definition

Caches grain directory entries.

public interface IGrainDirectoryCache
type IGrainDirectoryCache = interface
Public Interface IGrainDirectoryCache

Properties

KeyValues

Returns list of key-value-version tuples stored currently in the cache.

Methods

AddOrUpdate(GrainAddress, Int32)

Adds a new entry with the given version into the cache: key (grain) --> value The new entry will override any existing entry under the given key, regardless of the stored version

Clear()

Clear the cache, deleting all entries.

LookUp(GrainId, GrainAddress, Int32)

Looks up the cached value and version by the given key

Remove(GrainAddress)

Removes an entry from the cache given its key

Remove(GrainId)

Removes an entry from the cache given its key

Applies to