SpringCache implements Cache { @Override public void put(Object key, Object val) { if (val == null) cache.withSkipStore().put(key, NULL); else cache.put(key, val); } 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();  }
@Test public void testPut() throws Exception { String key = "key"; assertNull(springCache.get(key)); String value = "value"; springCache.put(key, value); assertEquals(value, springCache.get(key).get()); }