I have an object which holds 15 properties. the object stored in a List of its own type but the list is a bit big (330.000 object). I do set the object to be stored in Redis and all fine. the problem that i have is when Getting the list from Redis, i receive System.OutOfMemoryException (keep on mind that enough memory and disk space i have). below is the stacktrace of the exception
at System.String.CreateStringFromEncoding(Byte* bytes, Int32 byteLength, Encoding encoding)
at System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index, Int32 count)
at ServiceStack.StringExtensions.FromUtf8Bytes(Byte[] bytes)
at ServiceStack.Redis.RedisClient.GetValue(String key)
at ServiceStack.Redis.RedisClient.<>c__DisplayClass1c`1.<Get>b__1b(RedisClient r)
at ServiceStack.Redis.RedisClient.Exec[T](Func`2 action)
at ServiceStack.Redis.RedisClient.Get[T](String key)
at KaysisClientCache.RedisCacheProvider.GetCache[T](CacheNames key, Func`2 query) in d:\BBProjects\BBSunucu\KaysisClientCache\RedisCacheProvider.cs:line 32
and below is the way that i set the cache
redisClient.Set(cacheOb.Name, cacheItem, DateTime.Now.AddMinutes(cacheOb.TimeoutInMin));
and here is the way that get the cache
return query != null ? redisClient.Get<List<T>>(key.ToString()).Where(query).ToList() : redisClient.Get<List<T>>(key.ToString()).ToList();
any help is appreciated by the way Am using ServiceStack.Redis ver. 4.0.35.0