Skip to content

Redis工具类:基于 redisTemplate 模板的进一步封装

Notifications You must be signed in to change notification settings

youmulongjie/redis-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-tools

Redis 工具类,依赖 springboot(版本:2.0.6.RELEASE),进一步封装 redisTemplate 的操作

引入maven依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>

Redis封装工具类

源码路径:com.andy.redistools.util

  • RedisStringUtil.java(操作String类型)
  • RedisListUtil.java(操作List类型)
  • RedisSetUtil.java(操作Set类型)
  • RedisHashUtil.java(操作Hash类型)

(使用可参看)测试路径:com.andy.redistools

  • RedisHashUtilTest.java

Andy.wang,欢迎交流

Andy.wang的QQ

About

Redis工具类:基于 redisTemplate 模板的进一步封装

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages