From 7a10645e30dd6dd7dd5ef6a805d49f12f0c48e48 Mon Sep 17 00:00:00 2001 From: Sergey Odinokov Date: Mon, 9 Dec 2024 14:45:56 +0700 Subject: [PATCH] Add a section regarding ElastiCache Serverless paltform --- configuration/using-redis.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configuration/using-redis.rst b/configuration/using-redis.rst index 10b51fd..832b5b4 100644 --- a/configuration/using-redis.rst +++ b/configuration/using-redis.rst @@ -120,6 +120,19 @@ Starting from Hangfire.Pro.Redis 3.1.0, it is possible to connect to one or more GlobalConfiguration.Configuration.UseRedisStorage( "sentinel1:10000,sentinel2:10000,sentinel3:10000,serviceName=mymaster"); +ElastiCache Serverless support +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +ElastiCache Serverless platform is supported via the new experimental transactions that are based on a single `EVAL` call to a Redis instance. Default transactions aren't supported by this platform due to a slightly different Redis protocol handling, which is unable to use `EVAL` commands in a `MULTI` blocks. So while the default transaction implementation offers better memory consumption for large transactions, Serverless solution is unable to use them. + +.. code-block:: csharp + + GlobalConfiguration.Configuration.UseRedisStorage( + "connection_string", new RedisStorageOptions + { + UseExperimentalTransactions = true + }); + Passing options ~~~~~~~~~~~~~~~