diesel-core
Version:
Web framework built on Web Standards
2 lines (1 loc) • 449 B
JavaScript
class i{redis;constructor(t){this.redis=t}async get(t){let e=await this.redis.get(t);return e?parseInt(e):null}async set(t,e,s){await this.redis.set(t,e,"PX",s)}async reset(t){await this.redis.del(t)}}class r{dicedb;constructor(t){this.dicedb=t}async get(t){let e=await this.dicedb.get(t);return e?parseInt(e):null}async set(t,e,s){await this.dicedb.set(t,e,"PX",s)}async reset(t){await this.dicedb.del(t)}}export{i as RedisStore,r as DiceDbStore};