@Test void getNativeCache_withConfiguredMemcachedClient_returnsConfiguredMemcachedClient() throws Exception { MemcachedClientIF client = mock(MemcachedClientIF.class); SimpleSpringMemcached cache = new SimpleSpringMemcached(client, "test"); Object nativeCache = cache.getNativeCache(); assertThat(nativeCache).isSameAs(client); }
@Override public Object getNativeCache() { return this.memcachedClientIF; }
SimpleSpringMemcached implements Cache { @Override public Object getNativeCache() { return this.memcachedClientIF; } }
SimpleSpringMemcached implements Cache { @Override public Object getNativeCache() { return this.memcachedClientIF; } SimpleSpringMemcached(MemcachedClientIF memcachedClientIF, String cacheName); }
SimpleSpringMemcached implements Cache { @Override public Object getNativeCache() { return this.memcachedClientIF; } SimpleSpringMemcached(MemcachedClientIF memcachedClientIF, String cacheName); @Override String getName(); @Override Object getNativeCache(); @Override ValueWrapper get(Object key); @Override T get(Object key, Class<T> type); @SuppressWarnings("unchecked") @Override T get(Object key, Callable<T> valueLoader); @Override void put(Object key, Object value); @Override ValueWrapper putIfAbsent(Object key, Object value); @Override void evict(Object key); @Override void clear(); void setExpiration(int expiration); }
SimpleSpringMemcached implements Cache { @Override public Object getNativeCache() { return this.memcachedClientIF; } SimpleSpringMemcached(MemcachedClientIF memcachedClientIF, String cacheName); @Override String getName(); @Override Object getNativeCache(); @Override ValueWrapper get(Object key); @Override T get(Object key, Class<T> type); @SuppressWarnings("unchecked") @Override T get(Object key, Callable<T> valueLoader); @Override void put(Object key, Object value); @Override ValueWrapper putIfAbsent(Object key, Object value); @Override void evict(Object key); @Override void clear(); void setExpiration(int expiration);  }