public interface IMemcacheServiceFactory
The factory by which users acquire a handle to the MemcacheService.
Methods
getAsyncMemcacheService(String namespace)
public abstract AsyncMemcacheService getAsyncMemcacheService(String namespace)
Similar to #getMemcacheService(String) but returns a handle to an asynchronous version of the cache service.
Parameter | |
---|---|
Name | Description |
namespace |
String |
Returns | |
---|---|
Type | Description |
AsyncMemcacheService |
getMemcacheService(String namespace)
public abstract MemcacheService getMemcacheService(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 with MemcacheService#setErrorHandler(ErrorHandler)
is specific to each instance.
Parameter | |
---|---|
Name | Description |
namespace |
String if not |
Returns | |
---|---|
Type | Description |
MemcacheService |
a new |