简介
前面一篇文章介绍了Linux环境下安装配置Redis环境,如果有需要的可以点击下面连接查看
https://blog.csdn.net/chenshuo1234/article/details/102907325
本文主要介绍的是如何在开发过程中,如何通过Jeids连接池运用Redis实现我们所需要的业务。
pom文件
<dependencies>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!--jedis-->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>3.1.0</version>
</dependency>
</dependencies>