Skip to content

对spring中使用redis做了增强,提供配置热加载,服务调用统计监控等,完整支持jredis的功能

Notifications You must be signed in to change notification settings

colin-lee/jedis-spring-support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jedis-spring-support

目的

  1. 用cms系统配置redis参数
  2. 提供jedis的全部操作接口,可以使用list/set/map等命令
  3. 接入监控系统

使用配置

配置maven

<dependency>
    <groupId>com.github.colin-lee</groupId>
    <artifactId>jedis-spring-support</artifactId>
    <version>1.0.0</version>
</dependency>

配置spring

<bean id="testRedisSupport" class="com.github.jedis.support.JedisFactoryBean" p:configName="redis-test"/>

使用范例

@Autowired
@Qualifier("testRedisSupport")
private JedisCmd jedis;

若果是二进制协议,可以用
private BinaryJedisCmd jedis

About

对spring中使用redis做了增强,提供配置热加载,服务调用统计监控等,完整支持jredis的功能

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages