@Test public void clearTest() { Assert.assertNotNull(cacheManager); Cache cache = cacheManager.getCache("user"); Assert.assertNotNull(cache); }
@Override public void clear() { mongoTemplate.dropCollection(name); }
MongoCache implements Cache { @Override public void clear() { mongoTemplate.dropCollection(name); } }
MongoCache implements Cache { @Override public void clear() { mongoTemplate.dropCollection(name); } MongoCache(String name, MongoTemplate mongoTemplate); }
MongoCache implements Cache { @Override public void clear() { mongoTemplate.dropCollection(name); } MongoCache(String name, MongoTemplate mongoTemplate); @Override String getName(); @Override Object getNativeCache(); @Override ValueWrapper get(Object key); @Override void put(Object key, Object value); @Override void evict(Object key); @Override void clear(); }
MongoCache implements Cache { @Override public void clear() { mongoTemplate.dropCollection(name); } MongoCache(String name, MongoTemplate mongoTemplate); @Override String getName(); @Override Object getNativeCache(); @Override ValueWrapper get(Object key); @Override void put(Object key, Object value); @Override void evict(Object key); @Override void clear();  }