jedis-spring-support

using jedis lib, add spring support

License

License

Categories

Categories

Jedis Data Databases
GroupId

GroupId

com.github.colin-lee
ArtifactId

ArtifactId

jedis-spring-support
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

jedis-spring-support
using jedis lib, add spring support
Project URL

Project URL

https://github.com/colin-lee/jedis-spring-support
Source Code Management

Source Code Management

https://github.com/colin-lee/jedis-spring-support

Download jedis-spring-support

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.colin-lee/jedis-spring-support/ -->
<dependency>
    <groupId>com.github.colin-lee</groupId>
    <artifactId>jedis-spring-support</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.colin-lee/jedis-spring-support/
implementation 'com.github.colin-lee:jedis-spring-support:1.0.0'
// https://jarcasting.com/artifacts/com.github.colin-lee/jedis-spring-support/
implementation ("com.github.colin-lee:jedis-spring-support:1.0.0")
'com.github.colin-lee:jedis-spring-support:jar:1.0.0'
<dependency org="com.github.colin-lee" name="jedis-spring-support" rev="1.0.0">
  <artifact name="jedis-spring-support" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.colin-lee', module='jedis-spring-support', version='1.0.0')
)
libraryDependencies += "com.github.colin-lee" % "jedis-spring-support" % "1.0.0"
[com.github.colin-lee/jedis-spring-support "1.0.0"]

Dependencies

compile (4)

Group / Artifact Type Version
redis.clients : jedis jar 2.7.3
com.github.colin-lee : config-core jar 1.0.0
com.github.colin-lee : rpc-trace jar 1.0.0
org.apache.commons : commons-pool2 jar 2.3

provided (5)

Group / Artifact Type Version
org.springframework : spring-core jar 4.2.1.RELEASE
org.springframework : spring-context jar 4.2.1.RELEASE
org.springframework : spring-context-support jar 4.2.1.RELEASE
org.springframework : spring-beans jar 4.2.1.RELEASE
org.springframework : spring-expression jar 4.2.1.RELEASE

test (3)

Group / Artifact Type Version
org.springframework : spring-test jar 4.2.1.RELEASE
junit : junit jar 4.11
org.hamcrest : hamcrest-all jar 1.3

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.0