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

What is the difference between IRedisClientsManager and IRedisClientCacheManager in servicestack.redis

What is the difference between IRedisClientsManager and IRedisClientCacheManager in servicestack.redis. I am trying to replace my appfabric distributed cache. Which client should i use?
user3311298
  • 335
  • 5
  • 12
0
votes
1 answer

Using Servicestacks c# redis client how do I set the URN?

I have code like: public Vehicle NewOrUpdate(Vehicle vehicle) { try { RedisManager.ExecAs(r => { r.Store(vehicle); //save new or update }); } catch…
user2033791
  • 810
  • 12
  • 23
0
votes
1 answer

Getting items and count with ServiceStack.Redis IRedisTypedClient

I'm just starting to work with ServiceStack.Redis. I can put individual key/values into the cache and get them from the cache. However, I can't seem to get all items or a count of the items in the cache. Here's the code using (RedisClient…
jovball
  • 126
  • 1
  • 6
0
votes
1 answer

Designing ServiceStack with RedisMQ

I am implementing a solution that has a web interface (service stack) and a long running job service (servicestack?). I already implemented the web interface and found servicestack a really good framework for creating what i wanted. I used redis as…
Fenix
  • 33
  • 1
  • 5
0
votes
1 answer

Writing a cache provider with Redis and Service Stack for Piranha - keeping track of cached object type

I'm writing a caching provider to cache any type of object. The problem is casting to the correct type when I read the value out of the cache. using (var redisClient = redisClientsManager.GetClient()) { redisClient.Set(key, value, new…
Neil
  • 5,179
  • 8
  • 48
  • 87
0
votes
0 answers

MQ Casting error when publishing after upgrading to ServiceStack v4

Since upgrading to ServiceStack v4, my code for adding an object to a Redis MQ now throws a casting exception. Code (that hasn't changed): mqClient.Publish(new Message(new myRequest(Id)) { Priority = 1 }); Exception that is…
richardwhatever
  • 4,564
  • 5
  • 23
  • 26
0
votes
1 answer

Expiring TypedClient objects still leaves master set in redis

Imagine some code something like below... using (var transaction = this.redisClient.CreateTransaction()) { transaction.QueueCommand(client => client.As().StoreAsHash(myPocoInstance)); transaction.QueueCommand(client =>…
randeroo
  • 17
  • 4
0
votes
1 answer

How to use GUID as ID in Service Stack Redis client?

How can I use a GUID or UUID for an object ID using Service Stack's Redis client? I'm still going through Pluralsight tutorials on Service Stack and Redis and I'm getting worried. One of the requirements from my client is that the key of every…
Ryan D'Baisse
  • 837
  • 11
  • 29
0
votes
1 answer

Redis failover scenario

currently I have a redis instance, now I would make it more failure prove. Is it possible to archive the following things? I connect to redis with the service stack library, now I want that when the server is not available redis switch to the…
Sebastian
  • 952
  • 1
  • 14
  • 41
0
votes
1 answer

Redis - query by more than key

I use redis to store user sessions by a guid i generate when the log in. I use that as the key in their session object. If i was to lock a user's account I currently have to go through all sessions and check if they are the user's then delete…
Neil
  • 5,179
  • 8
  • 48
  • 87
0
votes
0 answers

Is ServiceStack.Redis 3.9.71 compatible with Redis 2.8.X?

3.9.71 is the latest BSD versionned version of ServiceStack.Redis. But Redis goes on with BSD licenses. There are merge required changes for redis (2.6.X -> 2.8.X) https://raw.github.com/antirez/redis/2.8/00-RELEASENOTES So the question: Could we…
Oguz Karadenizli
  • 3,449
  • 6
  • 38
  • 73
-1
votes
2 answers

bulk creating keys in Redis C# - SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted

I'm bulk creating keys in Redis dB under multi-threading environment for some reason in my ASP.NET MVC Web Application. And I'm using ServiceStack.Redis for redis client. I created a static class for all required redis operations i.e. put,get.. In…
GorvGoyl
  • 42,508
  • 29
  • 229
  • 225
-1
votes
1 answer

How to use ServiceStack Redis API?

I am new to service stack redis api. So i am getting little confused while using the service stack redis api. I want to know IRedisTypedClient"<"T">"? 1) What stands for "<"T">"? 2) What are the parameters we can pass in the "<"T">"?
JACOB DEEPAK
  • 21
  • 1
  • 11
-1
votes
1 answer

Lua script optimization

I am trying to connect redis via c# using using ServiceStack.Redis. I have written below code to validate number based on the key specified. argv[1] is key argv[2] is number string strScript = " local intCurrentVal = redis.call('GET', '' .. ARGV[1]…
-3
votes
2 answers

Invalid Servicestack license

I get this runtime exception when trying to use my new license. This license is invalid. Please see servicestack.net or contact team@servicestack.net for more details. The id for this license is '[MyLicenseNumber]' Am I doing anything wrong? I have…
1 2 3
14
15