
redis
酷鱼影子
我不是代码的生产者,我只是代码的搬运工
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Centos开机自启动redis
原文链接:http://my.oschina.net/indestiny/blog/197272?p={{page}} 修改redis.conf,打开后台运行选项: # By default Redis does not run as a daemon. Use 'yes' if you need it. # Note that Redis will write a pid file转载 2014-12-11 18:31:39 · 3407 阅读 · 0 评论 -
Redis的安装与部署
Redis的官方下载站是http://redis.io/download 步骤一: 下载安装包: Wget http://redis.googlecode.com/files /redis-2.4.17.tar.gz 步骤二: 编译源程序: tar zxvf redis-2.4.17.tar.gz cd redis-2.4.17 make 步原创 2014-12-11 19:23:24 · 575 阅读 · 0 评论 -
SpringBoot 集成Redis Cluster和RedisTemplate
先看示例: // 将验证码放入缓存,并设置自动过期时间 CacheUtils.put(CacheKey.PHONE_VERIFY_CODE.key(phone), code, 1, TimeUnit.HOURS); // 从缓存中获取验证码 String code = CacheUtils.get(CacheKey.PHONE_VERIFY_CODE.key(phone)); // 删除缓...原创 2018-10-25 21:11:51 · 5294 阅读 · 0 评论