接口的使用
top.tangyh.basic.cache.lock.DistributedLock
使用DistributedLock的程序包
-
top.tangyh.basic.cache中DistributedLock的使用
修饰符和类型方法说明CaffeineAutoConfigure.caffeineDistributedLock()为了解决演示环境启动报错而加的类RedisAutoConfigure.redisDistributedLock(org.springframework.data.redis.core.RedisTemplate<String, Object> redisTemplate) 分布式锁 -
top.tangyh.basic.cache.lock中DistributedLock的使用
修饰符和类型类说明class分布式锁 只能用redis实现 写这个类的目的,只是为了防止代码启动报错classredis分布式锁实现