| 接口 | 说明 |
|---|---|
| JedisTemplate.RedisBlock<Result> |
要在 redis 中做的操作
The operations will be did in redis
|
| LockTemplate.LockBlock<Result> |
为了使用更加优雅,特意加入了接口,这样可以使用 Lambda 表达式
To be graceful, this interface will be replace by Lambda
|
| 类 | 说明 |
|---|---|
| JedisTemplate<Result> |
Jedis 操作模板类
Jedis operation template class
|
| LockTemplate<Result> |
Lock 代码块模板类
这个类同样是为了保证使用锁的优雅性
Lock code block template class
This class is for coding gracefully
// return string result
return new LockTemplate<String>().lockWith(
lock,
() -> "HelloWorld!"
|
| TryBlockTemplate<Result> | 已过时 |
Copyright © 2019. All Rights Reserved.