redis
van334
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
缓存类实现Cache接口
package com.oracle.ssm.shop.cache; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.Cache; import org.springframework.cache.support.SimpleValueWrapper; import org.springframework.dao.DataAccessException; imp.原创 2021-07-20 12:04:49 · 670 阅读 · 0 评论 -
Spring整合Rediso整合方式二
使用Spring-data-redis整合 1.创建Maven工程。 2.pom.xml中添加依赖。 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mav原创 2021-07-14 20:41:32 · 216 阅读 · 0 评论 -
Spring与Redis整合方式一
原生spring整合:spring只起到控制反转的作用: 必须先确保linux中的redis集群搭建完毕并已经启动服务。 1.新建一个空白的maven工程。 2.pom.xml文件中添加依赖。 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/...原创 2021-07-14 19:10:50 · 4488 阅读 · 0 评论 -
Redis常用命令
redis的启动与连接 1.redis启动: 在redis/bin路径下,./redis-server redis.conf。注意:redis的启动必须指定配置文件 ./redis-server redis.conf 2.查看redis是否启动。ps -ef |grep redis。 ps -ef |grep redis 3.重启开启一个窗口连接redis 在redis/bin路径下。./redis-cli -h 127.0.0.1 -p 6379 ./r...原创 2021-07-13 15:34:04 · 148 阅读 · 0 评论
分享