CloudDatastoreCache extends AbstractRemoteCache { public int deleteExpiredItems() { return deleteExpiredItems(null); }  @Override byte[] get(String key); @Override void set(String key, byte[] value); @Override void set(String key, byte[] value, int expireIn); @Override void delete(String key); int deleteExpiredItems(); int deleteExpiredItems(Integer limit); @Override Lock acquireLock(String lockName); @Override CheckResult checkConnection(); final static String CACHE_KIND; final static String CACHE_VALUE_FIELD; final static String CACHE_EXPIRY_FIELD; }
@Test public void testDeleteExpiredItems() { deleteExpiredItems(false); }
@Test public void testDeleteExpiredItemsWithLimit() { deleteExpiredItems(true); }