MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​DependenciesString­DependencyICache­Dependency.​Get­Cache­Key
Open sandboxFocus

StringDependency.ICacheDependency.GetCacheKey Method

ICacheDependency.GetCacheKey(ICachingService)

Gets a string that uniquely represents the current object.

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

A string that uniquely represents the current object.

Implements
ICacheDependency.GetCacheKey(ICachingService)
Remarks

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