Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 975 Bytes

File metadata and controls

32 lines (23 loc) · 975 Bytes

Objectify Cache for Redis

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.

Maven

<dependencies>
    <dependency>
        <groupId>com.googlecode.objectify</groupId>
        <artifactId>objectify-cache-redis</artifactId>
        <version>(check maven central for latest)</version>
    </dependency>
</dependencies>

Usage

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

Help is provided in the Objectify App Engine User Group