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

ObjectDependency.GetCacheKey Method

GetCacheKey(ICachingService)

Gets a string that uniquely represents the current object.

Declaration
public string GetCacheKey(ICachingService cachingService)
Parameters
Type Name Description
ICachingService cachingService
Returns
Type Description
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.