MemcachedCache { public byte[] get(Object key) { return get(serializeKey(key)); } MemcachedCache(final MemcachedClientIF client, final MemcachedCacheConfig config,
            final String memcachedPrefix, int timeToLiveSeconds);  MemcachedCache(MemcachedCache cache); static MemcachedCache create(final MemcachedCacheConfig config, String memcachedPrefix); static MemcachedCache create(final MemcachedCacheConfig config, String memcachedPrefix, int timeToLive); String getName(); Object getNativeCache(); byte[] get(Object key); byte[] get(String keyS); void put(Object key, Object value); void put(String keyS, Object value); void evict(Object key); void evict(String keyS); void clear(); CacheStats getStats(); static final int MAX_PREFIX_LENGTH; }
@Test public void testGet() { for (String key : keyValueMap.keySet()) { Assert.assertEquals("The value should not change", keyValueMap.get(key), memCachedAdaptor.get(key).get()); } }