This is a cache plugin for Objectify that uses Redis. It can work with a standalone Redis instance or with Google's Google Cloud Memorystore for Redis service.
<dependencies>
<dependency>
<groupId>com.googlecode.objectify</groupId>
<artifactId>objectify-cache-redis</artifactId>
<version>(check maven central for latest)</version>
</dependency>
</dependencies>
Initialize your ObjectifyFactory with the RedisMemcacheService:
ObjectifyService.init(
new ObjectifyFactory(
new RedisMemcacheService("localhost", 6379)));
If you want more configuration options, you can construct the RedisMemcacheService
with a JedisPool
instance. See the Jedis documentation for more details.
Help is provided in the Objectify App Engine User Group