public class CachingDatastoreServiceFactory extends Object
A convenience class with factory methods to create caching versions of DatastoreService and AsyncDatastoreService. These are just shortcuts for common cases - do not be afraid to use the constructors of CachingDatastoreService or CachingAsyncDatastoreService to create an interface tailored exactly to your caching needs.
Constructor and Description |
---|
CachingDatastoreServiceFactory() |
Modifier and Type | Method and Description |
---|---|
static com.google.appengine.api.datastore.AsyncDatastoreService |
getAsyncDatastoreService()
Get a caching AsyncDatastoreService with no pre-set expiration on cache values.
|
static com.google.appengine.api.datastore.AsyncDatastoreService |
getAsyncDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg)
Get a caching AsyncDatastoreService with no pre-set expiration on cache values.
|
static CachingAsyncDatastoreService |
getAsyncDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg,
EntityMemcache em)
Get a caching AsyncDatastoreService that uses a particular EntityMemcache configuration.
|
static com.google.appengine.api.datastore.AsyncDatastoreService |
getAsyncDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg,
int expirySeconds)
Get a caching AsyncDatastoreService with a specific expiration on all cached items.
|
static CachingAsyncDatastoreService |
getAsyncDatastoreService(EntityMemcache em)
Get a caching AsyncDatastoreService that uses a particular EntityMemcache configuration.
|
static com.google.appengine.api.datastore.AsyncDatastoreService |
getAsyncDatastoreService(int expirySeconds)
Get a caching AsyncDatastoreService with a specific expiration on all cached items.
|
static com.google.appengine.api.datastore.DatastoreService |
getDatastoreService()
Get a caching DatastoreService with no pre-set expiration on cache values.
|
static com.google.appengine.api.datastore.DatastoreService |
getDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg)
Get a caching DatastoreService with no pre-set expiration on cache values.
|
static CachingDatastoreService |
getDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg,
EntityMemcache em)
Get a caching DatastoreService that uses a particular EntityMemcache configuration.
|
static com.google.appengine.api.datastore.DatastoreService |
getDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg,
int expirySeconds)
Get a caching DatastoreService with a specific expiration on all cached items.
|
static CachingDatastoreService |
getDatastoreService(EntityMemcache em)
Get a caching DatastoreService that uses a particular EntityMemcache configuration.
|
static com.google.appengine.api.datastore.DatastoreService |
getDatastoreService(int expirySeconds)
Get a caching DatastoreService with a specific expiration on all cached items.
|
static String |
getDefaultMemcacheNamespace()
The memcache snamespace used by default for most of these factory methods
|
static void |
setDefaultMemcacheNamespace(String value)
The default namespace is the one used by Objectify for its cache.
|
public static void setDefaultMemcacheNamespace(String value)
public static String getDefaultMemcacheNamespace()
public static com.google.appengine.api.datastore.DatastoreService getDatastoreService()
public static com.google.appengine.api.datastore.DatastoreService getDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg)
public static com.google.appengine.api.datastore.AsyncDatastoreService getAsyncDatastoreService()
public static com.google.appengine.api.datastore.AsyncDatastoreService getAsyncDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg)
public static com.google.appengine.api.datastore.DatastoreService getDatastoreService(int expirySeconds)
public static com.google.appengine.api.datastore.DatastoreService getDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg, int expirySeconds)
public static com.google.appengine.api.datastore.AsyncDatastoreService getAsyncDatastoreService(int expirySeconds)
public static com.google.appengine.api.datastore.AsyncDatastoreService getAsyncDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg, int expirySeconds)
public static CachingDatastoreService getDatastoreService(EntityMemcache em)
public static CachingAsyncDatastoreService getAsyncDatastoreService(EntityMemcache em)
public static CachingDatastoreService getDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg, EntityMemcache em)
public static CachingAsyncDatastoreService getAsyncDatastoreService(com.google.appengine.api.datastore.DatastoreServiceConfig cfg, EntityMemcache em)
Copyright © 2016. All rights reserved.