添加项目文件。

This commit is contained in:
2026-10-12 16:22:04 +08:00
parent 7c68a0ca0a
commit aad11be43d
1000 changed files with 120807 additions and 0 deletions
@@ -0,0 +1,16 @@
using System;
using System.Threading.Tasks;
namespace RedisHelper
{
public interface IDistributedLock
{
Task<T> TryExecuteAsync<T>(string key, Func<Task<T>> action, int expiry = 30, bool retry = false, int retryDelay = 100);
Task<bool> TryExecuteAsync(string key, Func<Task> action, int expiry = 30, bool retry = false, int retryDelay = 100);
T TryExecute<T>(string key, Func<T> action, int expiry = 30, bool retry = false, int retryDelay = 100);
bool TryExecute(string key, Action action, int expiry = 30, bool retry = false, int retryDelay = 100);
}
}