-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Amuerte edited this page Sep 18, 2013
·
2 revisions
Several templates bases on Jedis client, to use Redis in single or multi nodes mode.
Welcome to the Rejis wiki!
Rejis offers several templates based on the Jedis client, to use Redis in single or multi nodes mode.
- SimpleJedisTemplate : Use the same JedisPool for reading and writing (single master node).
- RoundRobinJedisTemplate : Use a JedisPool for writing (master) and a RoundRobinPool for reading. The whole master datas are replicated on each slaves. The RoundRobinPool maintains a list of shards and therefore has an iterator based implemementation. TODO : make the RoundRobinPoolFactory threadsafe.
- ShardedJedisTemplate : Use a ShardedJedisPool for reading and writing. The redis cluster contains n nodes which are used both for reading and writing. All the datas are not saved on each nodes. The keys are distributed on each nodes with a 1/n factor. (less memory needed)
- MixedShardedJedisTemplate : Use a JedisPool for writing (master) and a ShardedSlavedJedisPool for reading who register each shard as a slave. The reading load is distributed among the shards.