Redis的增删改查 c# key value类型和hash map 类型
using Newtonsoft.Json; using StackExchange.Redis; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AIMS.RedisMng { public class RedisContext : IRedisContext { private readonly static string REDIS_CONN = "127.0.0.1:6379"; private readonly static string REDIS_IP = "127.0.0.1"; private readonly static int REDIS_PORT = 6379; private ConnectionMultiplexer redis = null; //private StackExchange redis = null; private IDatabase database = null; private IServer server = null; private int mydb = 0; public RedisContext() { //mydb