Skip to content

Commit

Permalink
Add a section regarding ElastiCache Serverless paltform
Browse files Browse the repository at this point in the history
  • Loading branch information
odinserj committed Dec 9, 2024
1 parent 72529b7 commit 7a10645
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions configuration/using-redis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 7a10645

Please sign in to comment.