예제 #1
0
 public InMemoryCacheIndex(string name, ICacheProjector <TKey, TValue, TProjection> projector)
 {
     this.name      = name;
     this.projector = projector;
 }
예제 #2
0
 public ICacheIndex <TKey, TValue, TProjection> CreatePersistentCacheIndex <TKey, TValue, TProjection>(string name, ICacheProjector <TKey, TValue, TProjection> projector)
 {
     return(new InMemoryCache <TKey, TValue> .InMemoryCacheIndex <TKey, TValue, TProjection>(name, projector));
 }
 private ICacheIndex <TKey, TValue, TProjection> ConstructPersistentNamedCacheIndex <TKey, TValue, TProjection>(string name, ICacheProjector <TKey, TValue, TProjection> projector)
 {
     return(cacheFactory.CreatePersistentCacheIndex(name, projector));
 }