should use read-write lock to do synchronization . this method is designed for called from cacheable 's implementation . the cache supports add multiple cacheable objects with same key , in this case , it will create a list to keep all of these same key objects , then put the list to cache . this feature is to support multiple policies match the same request target . concode_field_sep String CONFIG_CACHE_EXPIRE_TYPE_ACCESS concode_elem_sep int preparedNum concode_elem_sep Logger logger concode_elem_sep long configExpInterval concode_elem_sep String CONFIG_CACHE_EXPIRE_TYPE_CREATE concode_elem_sep String ATTR_CACHE_EXPIREINTERVAL concode_elem_sep String ATTR_CACHE_SIZE concode_elem_sep int configSize concode_elem_sep Boolean running concode_elem_sep Map<Object,List<Cacheable>> cache concode_elem_sep String ATTR_CACHE_EXPIRETYPE concode_elem_sep int size concode_elem_sep ReadWriteLock cacheLock concode_elem_sep String configExpType concode_field_sep long getConfiguredExpireInterval concode_elem_sep List<Cacheable> removeExpirationsInList concode_elem_sep List<Cacheable> getAll concode_elem_sep String getConfiguredExpireType concode_elem_sep void writeLock concode_elem_sep void readLock concode_elem_sep long getConfiguredCacheSize concode_elem_sep void loadConfigurations concode_elem_sep List<Cacheable> remove concode_elem_sep void cleanupExpired concode_elem_sep boolean hasExpirationsInList concode_elem_sep void removeAll concode_elem_sep void addInternal concode_elem_sep int size concode_elem_sep List<Cacheable> get concode_elem_sep List<Cacheable> removeInternal concode_elem_sep void readUnlock concode_elem_sep void dump concode_elem_sep void ensureCapacity concode_elem_sep void writeUnlock
void function ( Object arg0 , Cacheable arg1 ) { try { writeLock ( ) ; ensureCapacity ( ) ; addInternal ( arg0 , arg1 ) ; } finally { writeUnlock ( ) ; } }