test_class.declarator: cache = createCache()
test_class.modifier: private
test_class.original_string: private Cache cache = createCache();
test_class.type: Cache
test_class.var_name: cache
test_class.file: dddlib-cache/dddlib-cache-memcached/src/test/java/org/dayatang/cache/memcached/MemcachedBasedCacheTest.java
test_class.identifier: MemcachedBasedCacheTest
test_case.body: @Test
      public void put() throws InterruptedException {
          try {
              Thread.sleep(1000);
              Date now = new Date();
              cache.put("time", now);
              Date obj = (Date) cache.get("time");
              assertNotNull(obj);
              assertEquals(now, obj);
          } catch (RuntimeException ex) {
              System.err.println("出错了..." + ex);
              throw ex;
          }
      }
test_case.class_method_signature: MemcachedBasedCacheTest.put()
test_case.full_signature: @Test public void put()
test_case.identifier: put
test_case.invocations: sleep put get assertNotNull assertEquals println
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void put()
focal_class.declarator: LOGGER = LoggerFactory
  			.getLogger(MemcachedBasedCache.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory
  			.getLogger(MemcachedBasedCache.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: mcc
focal_class.modifier: private
focal_class.original_string: private MemCachedClient mcc;
focal_class.type: MemCachedClient
focal_class.var_name: mcc
focal_class.declarator: servers
focal_class.modifier: private
focal_class.original_string: private String[] servers;
focal_class.type: String[]
focal_class.var_name: servers
focal_class.declarator: initConn = 100
focal_class.modifier: private
focal_class.original_string: private int initConn = 100;
focal_class.type: int
focal_class.var_name: initConn
focal_class.declarator: minConn = 100
focal_class.modifier: private
focal_class.original_string: private int minConn = 100;
focal_class.type: int
focal_class.var_name: minConn
focal_class.declarator: maxConn = 250
focal_class.modifier: private
focal_class.original_string: private int maxConn = 250;
focal_class.type: int
focal_class.var_name: maxConn
focal_class.declarator: connectTimeout = 3000
focal_class.modifier: private
focal_class.original_string: private int connectTimeout = 3000;
focal_class.type: int
focal_class.var_name: connectTimeout
focal_class.declarator: poolName
focal_class.modifier: private
focal_class.original_string: private String poolName;
focal_class.type: String
focal_class.var_name: poolName
focal_class.declarator: initialized = false
focal_class.modifier: private
focal_class.original_string: private boolean initialized = false;
focal_class.type: boolean
focal_class.var_name: initialized
focal_class.file: dddlib-cache/dddlib-cache-memcached/src/main/java/org/dayatang/cache/memcached/MemcachedBasedCache.java
focal_class.identifier: MemcachedBasedCache
focal_class.interfaces: implements Cache
focal_class.class_method_signature: MemcachedBasedCache.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: MemcachedBasedCache.get(String... keys)
focal_class.full_signature: @Override public Map<String, Object> get(String... keys)
focal_class.identifier: get
focal_class.modifiers: @Override 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: MemcachedBasedCache.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: MemcachedBasedCache.put(String key, Object value)
focal_class.full_signature: public void put(String key, Object value)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (String key, Object value)
focal_class.return: void
focal_class.signature: void put(String key, Object value)
focal_class.class_method_signature: MemcachedBasedCache.put(String key, Object value, Date expiry)
focal_class.full_signature: public void put(String key, Object value, Date expiry)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (String key, Object value, Date expiry)
focal_class.return: void
focal_class.signature: void put(String key, Object value, Date expiry)
focal_class.class_method_signature: MemcachedBasedCache.put(String key, Object value, long living)
focal_class.full_signature: public void put(String key, Object value, long living)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (String key, Object value, long living)
focal_class.return: void
focal_class.signature: void put(String key, Object value, long living)
focal_class.class_method_signature: MemcachedBasedCache.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_class.class_method_signature: MemcachedBasedCache.prepareClient()
focal_class.full_signature: @SuppressWarnings("rawtypes") protected void prepareClient()
focal_class.identifier: prepareClient
focal_class.modifiers: @SuppressWarnings("rawtypes") protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void prepareClient()
focal_class.class_method_signature: MemcachedBasedCache.getServers()
focal_class.full_signature: public String[] getServers()
focal_class.identifier: getServers
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getServers()
focal_class.class_method_signature: MemcachedBasedCache.setServers(String... servers)
focal_class.full_signature: public void setServers(String... servers)
focal_class.identifier: setServers
focal_class.modifiers: public
focal_class.parameters: (String... servers)
focal_class.return: void
focal_class.signature: void setServers(String... servers)
focal_class.class_method_signature: MemcachedBasedCache.getInitConn()
focal_class.full_signature: public int getInitConn()
focal_class.identifier: getInitConn
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getInitConn()
focal_class.class_method_signature: MemcachedBasedCache.setInitConn(int initConn)
focal_class.full_signature: public void setInitConn(int initConn)
focal_class.identifier: setInitConn
focal_class.modifiers: public
focal_class.parameters: (int initConn)
focal_class.return: void
focal_class.signature: void setInitConn(int initConn)
focal_class.class_method_signature: MemcachedBasedCache.getMinConn()
focal_class.full_signature: public int getMinConn()
focal_class.identifier: getMinConn
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMinConn()
focal_class.class_method_signature: MemcachedBasedCache.setMinConn(int minConn)
focal_class.full_signature: public void setMinConn(int minConn)
focal_class.identifier: setMinConn
focal_class.modifiers: public
focal_class.parameters: (int minConn)
focal_class.return: void
focal_class.signature: void setMinConn(int minConn)
focal_class.class_method_signature: MemcachedBasedCache.getMaxConn()
focal_class.full_signature: public int getMaxConn()
focal_class.identifier: getMaxConn
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMaxConn()
focal_class.class_method_signature: MemcachedBasedCache.setMaxConn(int maxConn)
focal_class.full_signature: public void setMaxConn(int maxConn)
focal_class.identifier: setMaxConn
focal_class.modifiers: public
focal_class.parameters: (int maxConn)
focal_class.return: void
focal_class.signature: void setMaxConn(int maxConn)
focal_class.class_method_signature: MemcachedBasedCache.getConnectTimeout()
focal_class.full_signature: public int getConnectTimeout()
focal_class.identifier: getConnectTimeout
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getConnectTimeout()
focal_class.class_method_signature: MemcachedBasedCache.setConnectTimeout(int connectTimeout)
focal_class.full_signature: public void setConnectTimeout(int connectTimeout)
focal_class.identifier: setConnectTimeout
focal_class.modifiers: public
focal_class.parameters: (int connectTimeout)
focal_class.return: void
focal_class.signature: void setConnectTimeout(int connectTimeout)
focal_class.class_method_signature: MemcachedBasedCache.getPoolName()
focal_class.full_signature: public String getPoolName()
focal_class.identifier: getPoolName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPoolName()
focal_class.class_method_signature: MemcachedBasedCache.setPoolName(String poolName)
focal_class.full_signature: public void setPoolName(String poolName)
focal_class.identifier: setPoolName
focal_class.modifiers: public
focal_class.parameters: (String poolName)
focal_class.return: void
focal_class.signature: void setPoolName(String poolName)
focal_class.class_method_signature: MemcachedBasedCache.init()
focal_class.full_signature: public void init()
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: MemcachedBasedCache.debug(String message, Object... params)
focal_class.full_signature: private void debug(String message, Object... params)
focal_class.identifier: debug
focal_class.modifiers: private
focal_class.parameters: (String message, Object... params)
focal_class.return: void
focal_class.signature: void debug(String message, Object... params)
focal_class.class_method_signature: MemcachedBasedCache.info(String message, Object... params)
focal_class.full_signature: private void info(String message, Object... params)
focal_class.identifier: info
focal_class.modifiers: private
focal_class.parameters: (String message, Object... params)
focal_class.return: void
focal_class.signature: void info(String message, Object... params)
focal_class.class_method_signature: MemcachedBasedCache.error(String message, Object... params)
focal_class.full_signature: private void error(String message, Object... params)
focal_class.identifier: error
focal_class.modifiers: private
focal_class.parameters: (String message, Object... params)
focal_class.return: void
focal_class.signature: void error(String message, Object... params)
focal_method.body: public void put(String key, Object value) {
  		init();
  		mcc.set(key, value);
  		debug("缓存数据，key：{}", key);
  	}
focal_method.class_method_signature: MemcachedBasedCache.put(String key, Object value)
focal_method.full_signature: public void put(String key, Object value)
focal_method.identifier: put
focal_method.invocations: init set debug
focal_method.modifiers: public
focal_method.parameters: (String key, Object value)
focal_method.return: void
focal_method.signature: void put(String key, Object value)