Skip to content

takemikami/objectify-appengine-memcacheclient

Repository files navigation

objectify-appengine-memcacheclient

JitPack Build Status Codacy Badge Coverage Status

objectify-appengine-memcacheclient is AppEngine Memcache Client Service for Objectify v6+. Objectify is a Java data access API specifically designed for the Google Cloud Datastore. See the GitHub Objectify Repository for about Objectify.

How to setup

Add objectify-appengine-memcacheclient to your application dependencies.

build.gradle snippet

repositories {
    mavenCentral()
    maven { url 'https://jitpack.io/' }
}
dependencies {
    compile group: 'com.googlecode.objectify', name: 'objectify', version: '6.0.2'
    runtime group: 'com.github.takemikami', name: 'objectify-appengine-memcacheclient', version: '0.0.2'
    runtime group: 'com.google.appengine', name: 'appengine-api-1.0-sdk', version: '1.9.65'
}

Initialize Objectify with objectify-appengine-memcacheclient.

Objectify init code snippet

final static String MEMCACHE_SERVICE = "com.github.takemikami.objectify.appengine.AppEngineMemcacheClientService";
ObjectifyService.init(new ObjectifyFactory(
    DatastoreOptions.newBuilder().setHost("http://localhost:8484")
        .setProjectId("my-project")
        .build().getService(),
    (MemcacheService) Class.forName(MEMCACHE_SERVICE).getDeclaredConstructor().newInstance()
));

How to execute Example Application

Example Application helps you to understand objectify-appengine-memcacheclient. You can execute example application by following process.

install gcloud sdk. (see. https://cloud.google.com/sdk/docs/)

install app-engine-java component.

gcloud components install app-engine-java

execute cloud datastore emulator.

gcloud beta emulators datastore start --host-port=localhost:8484

change example directory.

cd example

execute sample application.

gradle appengineRun

access to sample application. http://localhost:8080/

About

AppEngine Memcache Client Service for Objectify6

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages