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