MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​DependenciesICache­DependencyGet­Cache­Key
Open sandboxFocus

ICacheDependency.GetCacheKey Method

GetCacheKey(ICachingService)

Gets a string that uniquely represents the current object.

Declaration
string GetCacheKey(ICachingService cachingService)
Parameters
Type Name Description
ICachingService cachingService
Returns
Type Description
System.String

A string that uniquely represents the current object.

Remarks

The returned key should be globally unique, not just unique within the class implementing the method.