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

C# ServiceStack.Redis store objects in hashmap

First, a link to the library: ServiceStack.Redis Now, I want to store objects of type T where T contains fields Key and Value. (for this example) The issue is that it seems like I can only store strings as both keys and values. As far as a string…
Ori Refael
  • 2,888
  • 3
  • 37
  • 68
1
vote
1 answer

C# ServiceStack.Redis SetAll with expire

First, a link to the library: ServiceStack.Redis now, Im working on some generic cache mechanism which supports, for now, in 4 methods: Put, Get, PutMany, GetMany Problem is, whenever I want to insert numerous records, I dont have an option…
Ori Refael
  • 2,888
  • 3
  • 37
  • 68
1
vote
1 answer

Unexpected Error Occurred ServiceStack Redis Client

Am getting an error while manipulating Hashes with Servicestack pooled redisClientsManager. here is how i have registered the IOC private static IRedisClientsManager redisClientsManager; redisClientsManager = new…
Tech Cruize
  • 107
  • 1
  • 2
  • 16
1
vote
1 answer

How Do I Connect to a Redis Sentinel that requirespass with ServiceStack.Redis?

I have a simple redis cluster on my local machine that consists of: master on port 3679 slave on port 6380 sentinel on port 26379 I am using ServiceStack.Redis to connect with no problems so far. Today I added a password to each of them using the…
NotMyself
  • 29,209
  • 17
  • 56
  • 74
1
vote
1 answer

ServiceStack.Redis v3 and multiple hosts - recommended architecture

We are experiencing an issue where multiple instances of RedisMqServer are tripping up over each other - stopping one server stops the others. Clearly the way we have implemented this is wrong, but I can't identify how one is supposed to use…
nullPainter
  • 2,676
  • 3
  • 22
  • 42
1
vote
1 answer

ServiceStack Redis erros: "Unexpected reply: *", "Protocol error: expected '$', got 'C'", lost connection and etc

Do I get lots of errors when working with radishes. It`s my config: container.Register(c => new PooledRedisClientManager("localhost:6379")); container.Register(c =>…
Mher Arsh
  • 588
  • 4
  • 21
1
vote
2 answers

elasticache -ERR unknown command 'PSYNC

Trying to make AWS-Elasticache Redis3.2 as the Master and the redis instances in my EC2 as slaveof for this elasticache. I get this error. Connecting to MASTER masterredis.XXXXXXXXXXXXXXXXXXX.amazonaws.com:6379 MASTER <-> SLAVE sync started Non…
1
vote
2 answers

IRedisClient GetTypedClient not found

I get error IRedisClient does not contain definition of GetTypedClient: private readonly IRedisClient _redisClient; public CustomerRepository(IRedisClient redisClient) { _redisClient = redisClient; } public IList
Alvin
  • 8,219
  • 25
  • 96
  • 177
1
vote
2 answers

Redis return value for a string object

When I save a string to redis using ServiceStack.Redis: client.Add("key1","abc"); While fetching the value, it returns: client.GetValue("key1"); it returns "\"abc\"" How do I get the complete string? Thanks
Satyajit
  • 1,971
  • 5
  • 28
  • 51
1
vote
0 answers

ServiceStack.Redis: "Unable to Connect: sPort: 0" and Unable to cast object of type 'System.Byte[]' to type 'System.Object[]'

I have a test harness that repeatedly gets and sets DateTime objects so we can test fail-over of our new Redis Sentinel deployment. I have added my license key to the static constructor of the calling class. I have not made any client configuration…
Joe U
  • 366
  • 3
  • 12
1
vote
1 answer

ServiceStack Redis client : remove all objects

I want to remove all objects that are stored in Redis via the ServiceStack Redis client. I tried to use the Remove method with "*" as a key but it is not ok. Thanks.
David GROSPELIER
  • 772
  • 1
  • 9
  • 35
1
vote
1 answer

ServiceStack.Redis: Query a subset of objects by object properties stored using redisClient.StoreAll()

I have list of POCO objects (~80k). I have tried different ways to store these objects in Redis. Refer to redisClient.StoreAll() at http://docs.servicestack.net/redis-client/redis-client. In order to retrieve all of the stored objects you do…
Afzi
  • 43
  • 1
  • 4
1
vote
1 answer

Redis info doesn't update after client was previously disposed

I am using ServiceStack.Redis version 4.0.56 to read and display Redis server information as shown in the class below: using ServiceStack.Redis class Test { private IRedisClientManager clientManager; public Test() { …
Genti Saliu
  • 2,643
  • 4
  • 23
  • 43
1
vote
1 answer

ServiceStack RedisServerEvents must start RedisPubSub server even for a client component

ServiceStack RedisServerEvents implementation ties the server component with the client component. There is no way to just run a client side component which just publishes messages on ServiceStack Server Event channels without having to start up the…
xihan
  • 81
  • 7
1
vote
1 answer

Servicestack License for Redis framework

I am using AWS Redis (Elastic Cache) for my web site, which is developed using ASP.NET MVC. To connect with Redis i am using ServiceStack.Redis framework. I have moved this to production. But unfortunately, i am getting error like The free-quota…
Power Star
  • 1,724
  • 2
  • 13
  • 25