projects

redis-backed-dictionary

No description available.

Overview

| Field | Value | | โ€” | โ€” | | Name | redis-backed-dictionary | | Tier | ๐Ÿ—„๏ธ Archive | | Description | No description available. | | Visibility | ๐Ÿ”’ Private | | Fork | No | | Last activity | 2026-08-02 | | Status | โœ… Archived | | Original source | Github | | Original owner | guneysus |

๐Ÿ” Code Snippet

using Newtonsoft.Json;
using StackExchange.Redis;
using System;
using System.Collections;
using System.Collections.Generic;

namespace redis_backed_dictionary
{
    public class RedisBackedDict<V> : IDictionary<string, V>
    {
        private readonly ConnectionMultiplexer _redis;
        private readonly IDatabase _db;

        public RedisBackedDict()
        {
            this._redis = ConnectionMultiplexer.Connect("localhost");
            this._db = _redis.GetDatabase(db: -1);

        }

        public V this[string key] { get {
                return JsonConvert.DeserializeObject<V>(_db.StringGet(key));
            } set => throw new NotImplementedException(); }

        public ICollection<string> Keys => throw new NotImplementedException();

Archive Origins


โ† reader redis-backed-dictionary-tests โ†’

Generated by scripts/generate.py ยท Back to index