Databases Reference
In-Depth Information
Connector
Description
RJC
RJC is a Redis connector that is compatible with Redis 2.X. More
information about the RJC connector is found at https://github.com/
e-mzungu/rjc .
SRP
SRP is a Redis connector that supports Redis 2.6 commands. The project's
homepage is found at https://github.com/spullara/redis-
protocol .
Unfortunately, at the moment some of the supported connectors are at the early
stage of development and they do not support all the available features of Redis. If
the underlying connector does not support the performed operation, the exception,
UnsupportedOperationException , is thrown.
Also, the configuration options that we can use with Spring Data Redis depend on
the used connector. The following table describes differences between the supported
Redis connectors (X means that the configuration option is supported and - means
that it is not):
Connector
Password
Connection Pool
Jedis
X
X
JRedis
X
X
RJC
X
X
SRP
-
-
Jedis is the default connector of Spring Data Redis and at the moment it should be
our first choice because it is the most mature of the supported connectors and it is
being actively developed. However, we will take a look at the configuration process
of each supported connector because the situation might change in the future and if
it does, we should know that we have other options as well.
The configuration of each supported Redis connector always has the following
two steps:
1. Configuring the correct Maven dependency.
2. Configuring the correct Redis connection factory bean in the
redisConnectionFactory() method of the ApplicationContext class.
Search WWH ::




Custom Search