test_class.declarator: client
test_class.modifier: @Mock
test_class.original_string: @Mock
    Client client;
test_class.type: Client
test_class.var_name: client
test_class.declarator: serializer = new Serializer<Object>() {
  
      @Override
      public byte[] serialize(Object value) {
        int shortValue = (Integer) value;
        byte[] bytes = new byte[]{(byte) shortValue};
        return bytes;
      }
  
      @Override
      public Object deserialize(byte[] payload) {
        if (payload == null) {
          return null;
        }
        return (int) (payload[0]);
      }
    }
test_class.original_string: Serializer<Object> serializer = new Serializer<Object>() {
  
      @Override
      public byte[] serialize(Object value) {
        int shortValue = (Integer) value;
        byte[] bytes = new byte[]{(byte) shortValue};
        return bytes;
      }
  
      @Override
      public Object deserialize(byte[] payload) {
        if (payload == null) {
          return null;
        }
        return (int) (payload[0]);
      }
    };
test_class.type: Serializer<Object>
test_class.var_name: serializer
test_class.declarator: cacheLoader
test_class.modifier: @Mock
test_class.original_string: @Mock
    CacheLoader<Integer, Integer> cacheLoader;
test_class.type: CacheLoader<Integer, Integer>
test_class.var_name: cacheLoader
test_class.declarator: evictionListener
test_class.modifier: @Mock
test_class.original_string: @Mock
    EvictionListener<Integer, Integer> evictionListener;
test_class.type: EvictionListener<Integer, Integer>
test_class.var_name: evictionListener
test_class.declarator: cache
test_class.original_string: RedisCache<Integer, Integer> cache;
test_class.type: RedisCache<Integer, Integer>
test_class.var_name: cache
test_class.file: imcache-redis/src/test/java/com/cetsoft/imcache/redis/RedisCacheTest.java
test_class.identifier: RedisCacheTest
test_case.body: @Test(expected = RedisCacheException.class)
    public void clearThrowConnectionException() throws ConnectionException, IOException {
      doThrow(new ConnectionException("")).when(client).flushdb();
      cache.clear();
    }
test_case.class_method_signature: RedisCacheTest.clearThrowConnectionException()
test_case.full_signature: @Test(expected = RedisCacheException.class) public void clearThrowConnectionException()
test_case.identifier: clearThrowConnectionException
test_case.invocations: flushdb when doThrow clear
test_case.modifiers: @Test(expected = RedisCacheException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void clearThrowConnectionException()
focal_class.declarator: client
focal_class.modifier: final
focal_class.original_string: final Client client;
focal_class.type: Client
focal_class.var_name: client
focal_class.declarator: serializer
focal_class.modifier: final
focal_class.original_string: final Serializer<Object> serializer;
focal_class.type: Serializer<Object>
focal_class.var_name: serializer
focal_class.declarator: stats = new ConcurrentCacheStats()
focal_class.modifier: final
focal_class.original_string: final ConcurrentCacheStats stats = new ConcurrentCacheStats();
focal_class.type: ConcurrentCacheStats
focal_class.var_name: stats
focal_class.file: imcache-redis/src/main/java/com/cetsoft/imcache/redis/RedisCache.java
focal_class.identifier: RedisCache
focal_class.class_method_signature: RedisCache.RedisCache(final String name, final CacheLoader<K, V> cacheLoader,
        final EvictionListener<K, V> evictionListener,
        Serializer<Object> serializer, Client client)
focal_class.full_signature: public  RedisCache(final String name, final CacheLoader<K, V> cacheLoader,
        final EvictionListener<K, V> evictionListener,
        Serializer<Object> serializer, Client client)
focal_class.identifier: RedisCache
focal_class.modifiers: public
focal_class.parameters: (final String name, final CacheLoader<K, V> cacheLoader,
        final EvictionListener<K, V> evictionListener,
        Serializer<Object> serializer, Client client)
focal_class.signature:  RedisCache(final String name, final CacheLoader<K, V> cacheLoader,
        final EvictionListener<K, V> evictionListener,
        Serializer<Object> serializer, Client client)
focal_class.class_method_signature: RedisCache.put(final K key, final V value)
focal_class.full_signature: @Override public void put(final K key, final V value)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (final K key, final V value)
focal_class.return: void
focal_class.signature: void put(final K key, final V value)
focal_class.class_method_signature: RedisCache.put(final K key, final V value, final TimeUnit timeUnit, final long duration)
focal_class.full_signature: @Override public void put(final K key, final V value, final TimeUnit timeUnit, final long duration)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (final K key, final V value, final TimeUnit timeUnit, final long duration)
focal_class.return: void
focal_class.signature: void put(final K key, final V value, final TimeUnit timeUnit, final long duration)
focal_class.class_method_signature: RedisCache.get(final K key)
focal_class.full_signature: @Override @SuppressWarnings("unchecked") public V get(final K key)
focal_class.identifier: get
focal_class.modifiers: @Override @SuppressWarnings("unchecked") public
focal_class.parameters: (final K key)
focal_class.return: V
focal_class.signature: V get(final K key)
focal_class.class_method_signature: RedisCache.invalidate(final K key)
focal_class.full_signature: @Override @SuppressWarnings("unchecked") public V invalidate(final K key)
focal_class.identifier: invalidate
focal_class.modifiers: @Override @SuppressWarnings("unchecked") public
focal_class.parameters: (final K key)
focal_class.return: V
focal_class.signature: V invalidate(final K key)
focal_class.class_method_signature: RedisCache.contains(final K key)
focal_class.full_signature: @Override public boolean contains(final K key)
focal_class.identifier: contains
focal_class.modifiers: @Override public
focal_class.parameters: (final K key)
focal_class.return: boolean
focal_class.signature: boolean contains(final K key)
focal_class.class_method_signature: RedisCache.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: RedisCache.size()
focal_class.full_signature: @Override public long size()
focal_class.identifier: size
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long size()
focal_class.class_method_signature: RedisCache.stats()
focal_class.full_signature: @Override public CacheStats stats()
focal_class.identifier: stats
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: CacheStats
focal_class.signature: CacheStats stats()
focal_class.superclass: extends AbstractCache<K, V>
focal_method.body: @Override
    public void clear() {
      try {
        client.flushdb();
      } catch (ConnectionException|IOException e) {
        throw new RedisCacheException(e);
      }
    }
focal_method.class_method_signature: RedisCache.clear()
focal_method.full_signature: @Override public void clear()
focal_method.identifier: clear
focal_method.invocations: flushdb
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void clear()