Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 从属缓存服务器不可用_C#_Redis - Fatal编程技术网

C# 从属缓存服务器不可用

C# 从属缓存服务器不可用,c#,redis,C#,Redis,是否有人在尝试使用SDK获取数据时遇到以下错误: 原因可能是什么?感谢您的帮助。您如何尝试获取数据?@JeroenvanLangen基本上使用string CSRedis.IRedisClient.Get(string key)方法。 Cannot access a closed Stream. at System.IO.__Error.StreamIsClosed() at System.IO.BufferedStream.EnsureNotClosed() at Syste

是否有人在尝试使用SDK获取数据时遇到以下错误:


原因可能是什么?感谢您的帮助。

您如何尝试获取数据?@JeroenvanLangen基本上使用
string CSRedis.IRedisClient.Get(string key)
方法。
Cannot access a closed Stream.
   at System.IO.__Error.StreamIsClosed()
   at System.IO.BufferedStream.EnsureNotClosed()
   at System.IO.BufferedStream.Write(Byte[] array, Int32 offset, Int32 count)
   at CSRedis.Internal.RedisWriter.Write(RedisCommand command, Stream stream)
   at CSRedis.Internal.RedisConnector.Call[T](RedisCommand`1 command)
   at CSRedis.RedisClient.Write[T](RedisCommand`1 command)
   at CSRedis.RedisClient.Get(String key)