com.google.appengine.tools.development.testing
Class LocalMemcacheServiceTestConfig
java.lang.Object
com.google.appengine.tools.development.testing.LocalMemcacheServiceTestConfig
- All Implemented Interfaces:
- LocalServiceTestConfig
public class LocalMemcacheServiceTestConfig
- extends java.lang.Object
- implements LocalServiceTestConfig
Config for accessing the local memcache service in tests.
tearDown()
wipes out all cache entries so that memcache is empty
at the end of every test.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalMemcacheServiceTestConfig
public LocalMemcacheServiceTestConfig()
setUp
public void setUp()
- Description copied from interface:
LocalServiceTestConfig
- Set up the local service.
- Specified by:
setUp
in interface LocalServiceTestConfig
tearDown
public void tearDown()
- Description copied from interface:
LocalServiceTestConfig
- Tear down the local service.
- Specified by:
tearDown
in interface LocalServiceTestConfig
getMaxSize
public java.lang.Long getMaxSize()
getMaxSizeUnits
public LocalMemcacheServiceTestConfig.SizeUnit getMaxSizeUnits()
setMaxSize
public LocalMemcacheServiceTestConfig setMaxSize(long maxSize,
LocalMemcacheServiceTestConfig.SizeUnit maxSizeUnits)
- Sets the maximum size of the cache
- Parameters:
maxSize
- maxSizeUnits
-
- Returns:
this
(for chaining)
getLocalMemcacheService
public static LocalMemcacheService getLocalMemcacheService()