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.
Questions tagged [servicestack.redis]
225 questions
3
votes
1 answer
ServiceStack.Redis timeout on Azure
I'm moving my ServiceStack API from Linux/Mono (On my own hardware) to the Azure App Service, using SS 4.5.2. My Redis cache is 3.2 running on a Linux VM. I am NOT using the Azure Redis service.
I'm seeing this exception being thrown seemingly at…

SeanH
- 584
- 3
- 18
3
votes
1 answer
Using ServiceStack Redis from .net core and connecting to Sentinel setup
I have created a .net core console application and included the ServiceStack.Redis.Core v1.0.23 nuget package. I also have the redis sentinel setup running locally. When I try to connect to redis using the sentinel connection method the application…

riml
- 31
- 3
3
votes
1 answer
Storing an ASP.NET Session in Redis and reading it in ServiceStack
All,
We have several ASP.NET websites that are using the RedisSessionStateProvider for session storage. We are just starting to spin up an instance of ServiceStack, and I would like to pass the sessionId from ASP.NET to ServiceStack, then use the…

jaxmeier
- 499
- 4
- 13
3
votes
1 answer
Using Redis as Cache and C# client
I'm new to Redis and trying to figure out a simple way to use Redis as a local cache for my C# app. I've downloaded and ran the redis-server from https://github.com/MSOpenTech/redis/releases
I can successfully store a key value and retrieve it as…

Peter Kellner
- 14,748
- 25
- 102
- 188
3
votes
2 answers
Getting Redis Master address from Sentinel C#
I am trying to use the sentinel to get the connection address of my master, the problem is that the sentinel sends the address only on failover, but if my master is down and the slave was promoted master and my application is just booted it would…

atikot
- 4,761
- 4
- 26
- 34
3
votes
0 answers
Use empty list in ServiceStack.Redis
In ServiceStack.Redis, a list with a key is present in redis, only if the list contains at least a single entry.
If all the entries are removed from that particular list, then executing the command:
KEYS *
shows that the corresponding list key is…

Navaneeth
- 447
- 3
- 8
- 16
3
votes
1 answer
How to properly register Redis Master and Slaves with ServiceStack Client Managers?
When I provision a default Redis cluster on Google Compute Engine, there is one master and 2 read-only slaves and Redis Sentinel is running on each machine. Given the previous cluster I'd now like to use this in my ServiceStack Service, but the…

Stephen Patten
- 6,333
- 10
- 50
- 84
3
votes
2 answers
Mutex violations using ServiceStack Redis for distributed locking
I'm attempting to implement DLM using the locking mechanisms provided by the ServiceStack-Redis library and described here, but I'm finding that the API seems to present a race condition which will sometimes grant the same lock to multiple…

Dusty
- 3,946
- 2
- 27
- 41
3
votes
1 answer
redis servicestack client List.Remove(item) does not work
I'm developing a "Task Control System" that will allow its users to enter task description information including when to execute the task and what environment (OS, browser, etc.) the task requires.
The 'controller' saves the description information…

dbraseth
- 41
- 5
2
votes
2 answers
Does ServiceStack.Redis support RediSearch?
We currrently use ServiceStack for the majority of our APIs. We have come across the need to implement RediSearch against one of our Redis instances. Does ServiceStack.Redis support RediSearch?
I know StackExchange.Redis does with the NRediSearch…

cgipson
- 378
- 1
- 16
2
votes
1 answer
Connecting to TSL Redis Cloud using ServiceStack.Redis
I'm attempting to use ServiceStack.Redis to connect to a cloud based Redis instance using SSL Certificates. The ServiceStack documentation provides information on how to connect to an Azure based Redis using SSL, but has no information or examples…

lasernick
- 45
- 4
2
votes
0 answers
Redis subscriptions realiblity and retry
Im using ServiceStack.Redis in my application and i have my subscribe method is this:
protected void Subscribe(string channelsToSubscribe)
{
using IRedisClient redisClient = new RedisClient('127.0.0.1', '6379');
…

Gabriel Guedes
- 481
- 5
- 15
2
votes
1 answer
ServiceStack JSON serializer: How can I change the default serializer globally?
I have a case where the ServiceStack JSON serializer fails to deserialize, and where Newtonsoft's JSON.NET manages to do so. I have not found a clear-cut way to replace the default serializer with JSON.NET, so its global and for all…

Ted
- 19,727
- 35
- 96
- 154
2
votes
0 answers
How to archive or delete Redis log file
I am using Redis open source from redis.io. I have configured my redis.conf file and set the loglevel as "warning" from default setting "notice". This helps in reducing the logfile size. My log file is growing in size and I did not find any…

Ashish Shukla
- 1,239
- 12
- 23
2
votes
1 answer
How to set value with NX option and expire using ServiceStack.Redis?
I'm using ServiceStack.Redis to execute commands on REDIS.
I would like to simply set value with expire and NX option (which is : set only if not exists).
SET resource_name my_value NX PX 30000
The problem is that ServiceStack.Redis client has only…

lukasz
- 21
- 2