No description available.
| 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 |
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();
repos/github.com/guneysus/redis-backed-dictionarygit@github.com:guneysus/archive.gitgit@gitlab.com:guneysu/archive.gitgitea@192.168.1.19:guneysu.dev/github-archive.git| โ reader | redis-backed-dictionary-tests โ |
Generated by scripts/generate.py ยท Back to index