public bool Set(TPrimaryKey key, TEntity entity) { return(_options.Set(CacheHelper.GenKey <TEntity, TPrimaryKey>(key), entity)); }
public bool Remove(TPrimaryKey key) { return(_options.Del(CacheHelper.GenKey <TEntity, TPrimaryKey>(key))); }
public TEntity Get(TPrimaryKey key) { return(_options.Get(typeof(TEntity), CacheHelper.GenKey <TEntity, TPrimaryKey>(key)) as TEntity); }