test_class.file: dddlib-cache/dddlib-cache-ehcache/src/test/java/org/dayatang/cache/ehcache/EhCacheBasedCacheTest.java
test_class.identifier: EhCacheBasedCacheTest
test_case.body: @Test
      public void testGet() {
          Cache cache = new EhCacheBasedCache("sampleCache");
          cache.put("KEY1", "Koala Project");
          assertTrue("Koala Project".equals(cache.get("KEY1")));
          assertNull(cache.get("KEY2"));
          cache.remove("KEY1");
      }
test_case.class_method_signature: EhCacheBasedCacheTest.testGet()
test_case.full_signature: @Test public void testGet()
test_case.identifier: testGet
test_case.invocations: put assertTrue equals get assertNull get remove
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGet()
focal_class.declarator: cache
focal_class.modifier: private
focal_class.original_string: private net.sf.ehcache.Cache cache;
focal_class.type: net.sf.ehcache.Cache
focal_class.var_name: cache
focal_class.file: dddlib-cache/dddlib-cache-ehcache/src/main/java/org/dayatang/cache/ehcache/EhCacheBasedCache.java
focal_class.identifier: EhCacheBasedCache
focal_class.interfaces: implements Cache
focal_class.class_method_signature: EhCacheBasedCache.EhCacheBasedCache(String name)
focal_class.full_signature: public  EhCacheBasedCache(String name)
focal_class.identifier: EhCacheBasedCache
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.signature:  EhCacheBasedCache(String name)
focal_class.class_method_signature: EhCacheBasedCache.EhCacheBasedCache(EhCacheConfiguration configuration)
focal_class.full_signature: public  EhCacheBasedCache(EhCacheConfiguration configuration)
focal_class.identifier: EhCacheBasedCache
focal_class.modifiers: public
focal_class.parameters: (EhCacheConfiguration configuration)
focal_class.signature:  EhCacheBasedCache(EhCacheConfiguration configuration)
focal_class.class_method_signature: EhCacheBasedCache.EhCacheBasedCache(String name, int maxElementsInMemory, boolean overflowToDisk, boolean eternal, long timeToLiveSeconds, long timeToIdleSeconds)
focal_class.full_signature: public  EhCacheBasedCache(String name, int maxElementsInMemory, boolean overflowToDisk, boolean eternal, long timeToLiveSeconds, long timeToIdleSeconds)
focal_class.identifier: EhCacheBasedCache
focal_class.modifiers: public
focal_class.parameters: (String name, int maxElementsInMemory, boolean overflowToDisk, boolean eternal, long timeToLiveSeconds, long timeToIdleSeconds)
focal_class.signature:  EhCacheBasedCache(String name, int maxElementsInMemory, boolean overflowToDisk, boolean eternal, long timeToLiveSeconds, long timeToIdleSeconds)
focal_class.class_method_signature: EhCacheBasedCache.get(String key)
focal_class.full_signature: public Object get(String key)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: Object
focal_class.signature: Object get(String key)
focal_class.class_method_signature: EhCacheBasedCache.get(String... keys)
focal_class.full_signature: public Map<String, Object> get(String... keys)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (String... keys)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> get(String... keys)
focal_class.class_method_signature: EhCacheBasedCache.containsKey(String key)
focal_class.full_signature: public boolean containsKey(String key)
focal_class.identifier: containsKey
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: boolean
focal_class.signature: boolean containsKey(String key)
focal_class.class_method_signature: EhCacheBasedCache.put(String key, Object obj)
focal_class.full_signature: public void put(String key, Object obj)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (String key, Object obj)
focal_class.return: void
focal_class.signature: void put(String key, Object obj)
focal_class.class_method_signature: EhCacheBasedCache.put(String key, Object obj, Date expiredDate)
focal_class.full_signature: public void put(String key, Object obj, Date expiredDate)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (String key, Object obj, Date expiredDate)
focal_class.return: void
focal_class.signature: void put(String key, Object obj, Date expiredDate)
focal_class.class_method_signature: EhCacheBasedCache.put(String key, Object obj, long timeToLiveSeconds)
focal_class.full_signature: public void put(String key, Object obj, long timeToLiveSeconds)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (String key, Object obj, long timeToLiveSeconds)
focal_class.return: void
focal_class.signature: void put(String key, Object obj, long timeToLiveSeconds)
focal_class.class_method_signature: EhCacheBasedCache.remove(String key)
focal_class.full_signature: public boolean remove(String key)
focal_class.identifier: remove
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: boolean
focal_class.signature: boolean remove(String key)
focal_method.body: public Object get(String key) {
          Element el = (Element) cache.get(key);
          if (el != null) {
              return el.getObjectValue();
          }
          return null;
      }
focal_method.class_method_signature: EhCacheBasedCache.get(String key)
focal_method.full_signature: public Object get(String key)
focal_method.identifier: get
focal_method.invocations: get getObjectValue
focal_method.modifiers: public
focal_method.parameters: (String key)
focal_method.return: Object
focal_method.signature: Object get(String key)