예제 #1
0
 public bool Set(TPrimaryKey key, TEntity entity)
 {
     return(_options.Set(CacheHelper.GenKey <TEntity, TPrimaryKey>(key), entity));
 }
예제 #2
0
 public bool Remove(TPrimaryKey key)
 {
     return(_options.Del(CacheHelper.GenKey <TEntity, TPrimaryKey>(key)));
 }
예제 #3
0
 public TEntity Get(TPrimaryKey key)
 {
     return(_options.Get(typeof(TEntity), CacheHelper.GenKey <TEntity, TPrimaryKey>(key)) as TEntity);
 }