@Test public void testEvict() throws Exception { String key = "key"; assertNull(springCache.get(key)); springCache.put(key, "value"); assertNotNull(springCache.get(key)); springCache.evict(key); assertNull(springCache.get(key)); }
@Override public void evict(Object key) { cache.remove(key); }
SpringCache implements Cache { @Override public void evict(Object key) { cache.remove(key); } }
SpringCache implements Cache { @Override public void evict(Object key) { cache.remove(key); } SpringCache(IgniteCache<Object, Object> cache, SpringCacheManager mgr); }
SpringCache implements Cache { @Override public void evict(Object key) { cache.remove(key); } SpringCache(IgniteCache<Object, Object> cache, SpringCacheManager mgr); @Override String getName(); @Override Object getNativeCache(); @Override ValueWrapper get(Object key); @SuppressWarnings("unchecked") @Override T get(Object key, Class<T> type); @SuppressWarnings("unchecked") @Override T get(final Object key, final Callable<T> valLdr); @Override void put(Object key, Object val); @Override ValueWrapper putIfAbsent(Object key, Object val); @Override void evict(Object key); @Override void clear(); }
SpringCache implements Cache { @Override public void evict(Object key) { cache.remove(key); } SpringCache(IgniteCache<Object, Object> cache, SpringCacheManager mgr); @Override String getName(); @Override Object getNativeCache(); @Override ValueWrapper get(Object key); @SuppressWarnings("unchecked") @Override T get(Object key, Class<T> type); @SuppressWarnings("unchecked") @Override T get(final Object key, final Callable<T> valLdr); @Override void put(Object key, Object val); @Override ValueWrapper putIfAbsent(Object key, Object val); @Override void evict(Object key); @Override void clear();  }