public class RedisIdempotentKeyStore extends AbstractIdempotentKeyStore
StringRedisTemplate 实现 Redis 中的幂等键存储,主要功能包括: 1. 支持分布式环境 2.
支持自动过期 3. 支持原子操作| 构造器和说明 |
|---|
RedisIdempotentKeyStore() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
remove(String key)
删除指定的幂等键。
|
boolean |
saveIfAbsent(String key,
long duration,
TimeUnit timeUnit)
当不存在有效 key 时将其存储下来。
|
buildIdempotentKeyCopyright © 2025. All rights reserved.