public static CacheItem CreateCacheItem <TModel>(this IModelKeyGenerator keyGenerator, object id) { return(new CacheItem(keyGenerator.Create <TModel>(id))); }
public InMemoryCacheProvider(IModelKeyGenerator keyGenerator) { ModelKeyGenerator = keyGenerator; }
public static CacheItem CreateCacheItem <TModel>(this IModelKeyGenerator keyGenerator, long id) where TModel : IModelKey <long> { return(new CacheItem(keyGenerator.CreateKey <TModel>(id))); }