Beispiel #1
0
        public byte[] Load(string id)
        {
            var db = RedisConnection.GetDatabase();

            return(db.StringGet(id));
        }
Beispiel #2
0
        public void Delete(string id)
        {
            var db = RedisConnection.GetDatabase();

            db.KeyDelete(id);
        }
Beispiel #3
0
        public void SetExpiration(string id, TimeSpan expiry)
        {
            var db = RedisConnection.GetDatabase();

            db.KeyExpire(id, expiry);
        }
Beispiel #4
0
        public void Save(string id, string value)
        {
            var db = RedisConnection.GetDatabase();

            db.StringSet(id, value);
        }