Questions tagged [servicestack.redis]

ServiceStack.Redis is a simple, high-performance and feature-rich C# Client for Redis with native support and high-level abstractions for serializing POCOs and Complex Types.

225 questions
1
vote
1 answer

servicestack.redis wrapper poor performance

We are trying to store some big buffers (8MB each) in Redis using the ServiceStack wrapper. We use the “RedisNativeClient.Set(string key, byte[] value)” API to set the buffers. Both client and server reside on the same machine. Persistence in…
Eitan L
  • 11
  • 3
1
vote
1 answer

Keep copy of original request in Servicestack Redis outq

I realise outq is used to see the last 100 or so responses for processed messages. However, the objects stored in outq only seem to have the response body, not the originating request, so it can be quite difficult to debug issues. Is there an easy…
richardwhatever
  • 4,564
  • 5
  • 23
  • 26
1
vote
1 answer

ServiceStack Cannot Set Session with Redis

I am using the AuthFeature to authenticate my user. I am experience an issue writing to Redis. Has anyone experienced this before? Using ServiceStack 4.0.40 and Redis-64 v2.8.19 installed by Choco // Register the…
DevTech
  • 138
  • 8
1
vote
1 answer

Getting poor performance while saving to Redis cache (using ServiceStack.Redis)

I am getting very poor performance while saving data to Redis cache. Scenario : 1) Utilizing Redis cache service (provided by Microsoft Azure). 2) Running code in Virtual Machine created on Azure. 3) Both VM and Cache service are created on same…
1
vote
1 answer

ServiceStack RedisMqServer not always handling messages published from separate application

Context I have a RedisMqServer configured to handle a single message on my ServiceStack web service. The messages on that MQ originate from another application and show up in the .inq with all the correct properties. Everything is on 4.0.38. My…
Facio Ratio
  • 3,373
  • 1
  • 16
  • 18
1
vote
1 answer

What does ServiceStack.Redis GetNextSequence call put into the redis database?

I have searched the documentation but have not found what is put into the redis database (if anything) to track the "GetNextSequence" for an IRedisTypedClient. This came up because I started to see additional keys other than my own keys. I am not…
tradetree
  • 354
  • 3
  • 20
1
vote
1 answer

servicestack server events with azure RedisServerEvents doesn't work, while default option MemoryServerEvents works

Question on Servicestack ServerEvents using Azure Redis cache.. Server Code: I have these lines under Configure method of Global.asax file Plugins.Add(new ServerEventsFeature { OnConnect = (res,httpReq) => res.Publish("cmd.onConnect","Message on…
Vinu
  • 336
  • 2
  • 7
1
vote
1 answer

Retrieve selection of servicestack redis session objects based on values of properties

I want to update multiple servicestack user sessions that are stored in redis. I want to return all sessions that have a custom property set to a certain value, then I can process them. At the moment the best solution I have returns all keys as…
1
vote
1 answer

How to unit test Service Stacks Redis Client with Moq

I'm trying to understand how can I mock the IRedisClientsManager so that I can unit test the Handle Method below using Moq. Cheers public class PropertyCommandHandler : ICommandHandlerFor { private…
MikeW
  • 4,749
  • 9
  • 42
  • 83
1
vote
0 answers

Getting nullreferenceexception when calling RedisTypedClient.As method

The question says it all.. We have been running it for 10 hrs when we suddenly hit this. I had to recycle IIS to recover from this.. Here is the stack trace.. System.NullReferenceException: Object reference not set to an instance of an object. at…
rb531
  • 43
  • 1
  • 5
1
vote
0 answers

Designing ServiceStack and ServiceStack.Redis with a message exchange

I have reviewed and implemented / tested all the messaging options with ServiceStack that I know of (and I've searched on and off for a long time). The two are Pub/Sub and RedisMQ. Both of these have limitations that I needed to go beyond. I have…
tradetree
  • 354
  • 3
  • 20
1
vote
1 answer

Redis throw exception "System.OutOfMemoryException"

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,…
MuhanadY
  • 752
  • 1
  • 12
  • 40
1
vote
1 answer

How to access the keyspace notifications with ServiceStack.redis

I am trying to access the keyspace notifications in a .Net Application using ServiceStack.Redis. I am new to Redis. I enabled event notifications on cache by command: CONFIG SET notify-keyspace-events KEs I am subscribing to the channel "key*:*"…
Prash
  • 11
  • 3
1
vote
2 answers

Efficient way of mapping data from Redis

I'm playing around with Redis and with ServiceStack.Redis as a client. I initially used 'AutoMapper' to map the cached objects into domain objects, but this was pretty slow. Using someone else's example, I set up a custom mapper but this, too, is…
Jamie
  • 143
  • 8
1
vote
1 answer

redis c# client, how do i get Subscribers count?

i need to give statistic about my publisher app like how many subscribers are there? i cant seen to get that information from the redis server i already tried to find in the 'ServiceStack.Redis.RedisSubscription' i found this: var channel =…
Doron Eli
  • 71
  • 1
  • 9