com.google.appengine.api.memcache
Interface IMemcacheServiceFactory
-
public interface IMemcacheServiceFactory
The factory by which users acquire a handle to the MemcacheService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description AsyncMemcacheService
getAsyncMemcacheService(java.lang.String namespace)
Similar togetMemcacheService(String)
but returns a handle to an asynchronous version of the cache service.MemcacheService
getMemcacheService(java.lang.String namespace)
Gets a handle to the cache service, forcing use of specific namespace.
-
-
-
Method Detail
-
getMemcacheService
MemcacheService getMemcacheService(java.lang.String namespace)
Gets a handle to the cache service, forcing use of specific namespace.Although there is only one actual cache, an application may make as many
MemcacheService
instances as it finds convenient. If using multiple instances, note that the error handler established withBaseMemcacheService.setErrorHandler(ErrorHandler)
is specific to each instance.- Parameters:
namespace
- if notnull
forces the use ofnamespace
for all operations inMemcacheService
. Ifnamespace
isnull
- createdMemcacheService
will use current namespace provided byNamespaceManager.get()
.- Returns:
- a new
MemcacheService
instance.
-
getAsyncMemcacheService
AsyncMemcacheService getAsyncMemcacheService(java.lang.String namespace)
Similar togetMemcacheService(String)
but returns a handle to an asynchronous version of the cache service.
-
-