摘要:
1、依赖 POM <!-- spring boot redis 缓存引入 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifa 阅读全文
posted @ 2020-06-23 09:49
SweetBaby。
阅读(824)
评论(0)
推荐(0)
摘要:
自动化配置 1、redis自动化配置 源码分析:RedisAutoConfiguration @Configuration( proxyBeanMethods = false ) @ConditionalOnClass({RedisOperations.class}) @EnableConfig 阅读全文
posted @ 2020-06-23 01:22
SweetBaby。
阅读(276)
评论(0)
推荐(0)
摘要:
1. String数据类型 字符串是使用最多的一种数据类型,C语言当中,0代表false,1代表true SET key value [EX seconds|PX milliseconds] [NX|XX] [KEEPTTL] # 设置值 GET key # 获取值 SETEX key seco 阅读全文
posted @ 2020-06-23 00:47
SweetBaby。
阅读(78)
评论(0)
推荐(0)
摘要:
主从复制 进行配置 1、进行配置文件拷贝 cd /usr/local/redis/conf/ cp redis.conf redis-6380.conf cp redis.conf redis-6381.conf 2、修改6380与6381配置文件 vim redis-6380.conf port 阅读全文
posted @ 2020-06-23 00:45
SweetBaby。
阅读(72)
评论(0)
推荐(0)

浙公网安备 33010602011771号