Redis
文章平均质量分 58
phubing
纵使秋风起,人生不言弃。
展开
-
Redis的事务与锁机制
1、Redis事务 官方解释: Althe commands in a transaction are serialized and executed sequentially.It can never happen that a request issued by another client is served in the middle of the execution of a Redis transaction.This guarantees that the command...原创 2021-09-28 16:35:05 · 176 阅读 · 0 评论 -
Java集成redis,自定义序列化
1.、application.properties #redis # Redis 服务器地址 spring.redis.host=localhost # Redis 服务器连接端⼝ spring.redis.port=6379 # 连接池最大连接数(使用负值表示没有限制) 默认 8 spring.redis.lettuce.pool.max-active=100 # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1 spring.redis.lettuce.pool.max-wait=PT10转载 2021-07-09 10:53:12 · 491 阅读 · 0 评论