![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
redis学习
taiguolaotu
这个作者很懒,什么都没留下…
展开
-
redis分布式锁
【代码】redis分布式锁。原创 2023-09-22 10:29:25 · 89 阅读 · 0 评论 -
redis方法 setIfAbsent
【代码】redis方法 setIfAbsent。原创 2023-09-13 14:41:34 · 3364 阅读 · 0 评论 -
spingboot项目加启动参数忽略配置文件redis密码
-DREDIS_PASSWORD=原创 2022-02-09 09:14:36 · 896 阅读 · 0 评论 -
启动redis出现的问题
一般redis-server.exe redis.windows.conf 这个命令足够了,但是有时候还是启动不起来。因此我们需要输入下面的命令,依次执行即可。redis-cli.exeshutdownexitredis-server.exe原创 2021-12-17 11:31:48 · 504 阅读 · 0 评论 -
redisUtil工具类使用 第二种
config 配置类参见第一种 ,这里主要介绍第二种使用自定义redisTemplate的方式config配置类import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.data.redis.connection.RedisConnectionFactory;import org.s原创 2021-06-02 10:19:19 · 523 阅读 · 0 评论 -
redis学习2
redis操作redis操作2redis有道云笔记redis存储使用 redis-desktop连接redis往redis中存入数据第一种存jsonnew Gosn().toJson(×××)第二种存字节数组key与value都是字节数组需要反序列化原创 2020-12-01 21:56:18 · 158 阅读 · 0 评论 -
redis 默认系列化以及自定义序列化 及redisUtil工具类 第一种
首选要说明redis的默认序列化方式是采用的jdk序列化方式。从这里源码也可以看出那么jdk序列化方式有什么缺点。存储在redis中数据乱码,会有转义字符。比如默认jdkSerializeable序列化后cli显示:"\xac\xed\x00\x05t\x00\bcustomer",此刻在cli中get customer 为nil,为避免这种情况的出现,可自行修改序列化方式。只需自定义序列化类redisTemplate,使用时正常调用RedisTemplate类即可。自定义序列化类redis原创 2020-08-20 11:14:49 · 962 阅读 · 1 评论