- 用cms系统配置redis参数
- 提供jedis的全部操作接口,可以使用list/set/map等命令
- 接入监控系统
<dependency>
<groupId>com.github.colin-lee</groupId>
<artifactId>jedis-spring-support</artifactId>
<version>1.0.0</version>
</dependency>
<bean id="testRedisSupport" class="com.github.jedis.support.JedisFactoryBean" p:configName="redis-test"/>
@Autowired
@Qualifier("testRedisSupport")
private JedisCmd jedis;
若果是二进制协议,可以用
private BinaryJedisCmd jedis