|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.cache.CachingDatastoreServiceFactory
public class CachingDatastoreServiceFactory
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 Summary | |
---|---|
CachingDatastoreServiceFactory()
|
Method Summary | |
---|---|
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 java.lang.String |
getDefaultMemcacheNamespace()
The memcache snamespace used by default for most of these factory methods |
static void |
setDefaultMemcacheNamespace(java.lang.String value)
The default namespace is the one used by Objectify for its cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingDatastoreServiceFactory()
Method Detail |
---|
public static void setDefaultMemcacheNamespace(java.lang.String value)
public static java.lang.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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |