我试过这样做public async void SetData< T >(IEnumerable< T > collection, string Key) RedisDictionary< object, T > mydictionary = new RedisDictionary< object, T >(Settings, typeof(T).Name);
//how to add collection data
我正在尝试访问Visual Studio中的活动Azure Redis Cache实例以进行本地调试,我正在使用StackExchange.Redis,但每当我尝试访问我的缓存值时,都会收到此错误 StackExchange.Redis.RedisConnectionExceptionconnection is available to service this operation: GET 100014; UnableToConnect on cache.redis.cache.windows.net:6380/
我用的是.Net内核和StackExchangeRedis {WRONGTYPE Operation against a key holding the wrong kind of value
问题:
如何在没有散列类型的情况下使用StackExchangeRedis存储简单的字符串类型?我想要一根简单的绳子。(得到/设置)