public interface IMemcacheServiceFactory
| Modifier and Type | Method and Description |
|---|---|
AsyncMemcacheService |
getAsyncMemcacheService(java.lang.String namespace)
Similar to
getMemcacheService(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.
|
MemcacheService getMemcacheService(java.lang.String 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 with BaseMemcacheService.setErrorHandler(ErrorHandler)
is specific to each instance.
namespace - if not null forces the use of namespace
for all operations in MemcacheService . If namespace is
null - created MemcacheService will use current namespace
provided by NamespaceManager.get().MemcacheService instance.AsyncMemcacheService getAsyncMemcacheService(java.lang.String namespace)
getMemcacheService(String) but returns a handle to an
asynchronous version of the cache service.