configure Redis cache and distributed locks

This commit is contained in:
Behzad Alizadeh
2026-10-10 16:51:15 +03:30
parent f4dba6874c
commit 18e91d0b18
9 changed files with 2465 additions and 64 deletions
@@ -0,0 +1,8 @@
using Medallion.Threading;
namespace Caspian.WorkflowFramework.Config;
internal class PrefixedDistributedLockProvider(IDistributedLockProvider provider, string prefix) : IDistributedLockProvider
{
public IDistributedLock CreateLock(string name) => provider.CreateLock(prefix + name);
}