Skip to content

Cache plugin for Redis (including Google Cloud Memorystore for Redis)

License

Notifications You must be signed in to change notification settings

objectify/objectify-cache-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Cache plugin for Redis (including Google Cloud Memorystore for Redis)

Resources

License

Stars

Watchers

Forks

Packages

No packages published