/// <summary> /// 注册键值对 redis缓存策略 /// </summary> /// <param name="csRedisClient"></param> public static void UseCsRedisCache(CSRedisClient csRedisClient) { CacheStrategyFactory.RegisterObjectCacheStrategy(() => RedisObjectCacheStrategy.CreateInstance(csRedisClient)); //键值Redis RedisContainerCacheStrategy.InitInstance(csRedisClient); }
public static void InitInstance(CSRedisClient client) { Instance = new RedisContainerCacheStrategy(client); }