ItemBaseRepositoryTReplicationLayerCacheKey Method

Generates a cache key for the given item. (for the memory cache ReplicationLayer usage). The way we do caching reflect the partition keys of the containers.

Definition

Namespace: MobileTrack.DataContainers.Repositories
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
protected abstract string ReplicationLayerCacheKey(
	T item
)

Parameters

item  T
Item to generate the cache key for. It is not always necessary, some repositories like the SettingsRepository only have 1 cache.

Return Value

String
Cache key

Exceptions

NotImplementedExceptionThrown if the container doesn't use the ReplicationLayer

See Also