Currently, I am using ServiceStack.Redis to connect to Redis Cache server. The redis cache URL structure is like: redis://f:UIOPabcdXYZ@ip-172-31-81-144.manager.{domain}.io:33004
Below is a sample code to connect to Redis Cache using ServiceStack.Redis
var redisClientManagerPool = new RedisManagerPool(ConfigManager.RedisCacheUrl);
using (var client = redisClientManagerPool.GetClient())
{
//SetClientData(key, client, data);
}
But the free version has certain restrictions and once it reaches the limit, it gives error like
The free-quota limit on '6000 Redis requests per hour' has been reached. Please see https://servicestack.net to upgrade to a commercial license or visit https://github.com/ServiceStackV3/ServiceStackV3 to revert back to the free ServiceStack v3
I want to use StackExchange.Redis
to connect to redis cache. But I didn't get any code reference how to use the redis URL from https://stackexchange.github.io/StackExchange.Redis/Basics .
I am looking for any code reference to use redis cache URL like redis://f:UIOPabcdXYZ@ip-172-31-81-144.manager.domain.io:33004
to connect to redis cache server by using StackExchange.Redis
nuget. Any help is appreciated.
Note: The current used library is .NET Standard 2.0 version of ServiceStack.Redis. The nuget name is ServiceStack.Redis.Core
version 5.7.0.