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
2
votes
1 answer

How to specify a password for Redis and his sentinels?

We going to use ServiceStack.RedisClient, but I was not able figure out how to define a password for sentinels and masters. I've tried pwd@ipv4:port but no result. Our code is: var sentinelHosts = new[] { "node1:26379", "node2:26379",…
Dmitriy Sosunov
  • 1,075
  • 3
  • 10
  • 25
2
votes
2 answers

ServiceStack.Redis missing Async Support

I connect to redis in a cluster with the following code. I would use it in a webapi project with a lot of traffic and I'm concerned about the missing async support. Does anyone have some experiences with this ? I also dindn't find an offical…
Boas Enkler
  • 12,264
  • 16
  • 69
  • 143
2
votes
1 answer

Issues deserializing with service stack

I am having issues getting a list of an object out of redis using servicestack. The error is 'Type definitions should start with a '{' array....' using (var redis = _redisService.GetClient()) { redis.Set(key,…
Grace
  • 2,548
  • 5
  • 26
  • 23
2
votes
1 answer

Unable to connect Redis Cache server using ServiceStack.Redis library

I have install PM> Install-Package ServiceStack.Redis and used following code to connect azure redis cache. I think I missed connection string as I have not given PRIMARY KEY in host string host = "mydemo.redis.cache.windows.net"; var…
Neo
  • 15,491
  • 59
  • 215
  • 405
2
votes
1 answer

How could I add a delay in processing failed messages in ServiceStack Redis MQ

Is there an easy way to get Servicestack to wait x seconds before retrying a failed MQ item (using Redis MQ). At the moment it just tries 3 times consecutively with no delay.
richardwhatever
  • 4,564
  • 5
  • 23
  • 26
2
votes
1 answer

Protocol errors, "no more data" errors, "Zero length response" errors while using servicestack.redis in a high volume scenario

Would really help if someone tell me if there are issues with PooledRedisClientManager under high volume scenarios? I am using a singleton client manager that gets called for GetClient() by multiple WCF threads 1000's of times in a min and each…
rb531
  • 43
  • 1
  • 5
2
votes
1 answer

ServiceStack.Redis Unable to read transport - BasicRedisClientManager

I am getting the following error intermittently when trying to read a redis list via ServiceStack.Redis: "Unable to read data from the transport connection: An established connection was aborted by the software in your host machine". I am wondering…
tradetree
  • 354
  • 3
  • 20
2
votes
1 answer

ServiceStack PooledRedisClient Timeout exception

I am using ServiceStack.Redis pooled client in a servicestack API and after a couple of hours of traffic with about 3000rpm I receive a connection timeout exception from the pool manager. The implementation is as follows: In AppStart: …
Radu Cotofana
  • 117
  • 1
  • 11
2
votes
0 answers

ServiceStack RedisMqServer fails in Azure

We have an instance of RedisMqServer hosted on one of our sites to process emails. When testing locally the queue performs perfectly. When deployed to Windows Azure the queue will process any messages in the in queue on start but after a few minutes…
Alex
  • 435
  • 1
  • 3
  • 11
2
votes
0 answers

How could I use protobuf as default serialization for ServiceStack.Redis

ServiceStack.Redis is using JsonSerializer as internal. Could I use protobuf? Is there any general setting for this?
Oguz Karadenizli
  • 3,449
  • 6
  • 38
  • 73
2
votes
2 answers

ServiceStack message queue handling and Profiler

I'm currently trying out the persistent mini profiler feature of ServiceStack and I'm currently having trouble registering profile information for my Redis Message Queue handlers. A bit more background: I have some regular REST api handlers which…
nover
  • 2,259
  • 1
  • 27
  • 27
2
votes
3 answers

F# Dealing with Null Records returned from Database

When retrieving unique items from a database I need to cater for the scenario when there is no data for the ID provided by the client. For example, the ID is incorrect or the cached data has expired. The particular DB client library I am using in…
Nick
  • 6,366
  • 5
  • 43
  • 62
1
vote
1 answer

c# ServiceStack Redis Clients grown up suddenly and get max number of clients reached

im using redis with servicestack. i get client with this code : public RedisClient GetClient() { RedisManagerPool redisManager = new RedisManagerPool(); RedisClient client =…
1
vote
2 answers

Servicestack.Redis how to use GetRange feature

I need to use the redis command GETRANGE. I use it this retrieve the hash I store along with the string content, to evaluate if this latter has been changed while using side in memory cache. Using (RedisClient.cs) I am unable to access get range…
Norcino
  • 5,850
  • 6
  • 25
  • 42
1
vote
1 answer

ServiceStack RedisMessageQueueClient: Errors are not returned to the ReplyTo address, nor is the RetryAttempts used?

I am using the RedisMessageQueueClient as can be seen here: public TResponse SendSync(TRequest request, int? timeoutMilliseconds = null) where TRequest : CoreRequest where TResponse : CoreRequest { …
Ted
  • 19,727
  • 35
  • 96
  • 154