<s>[INST] put entity in cache with cache lock . concode_field_sep ReentrantLock lock concode_elem_sep LongSparseArray<Reference<T>> map concode_field_sep void unlock concode_elem_sep T get concode_elem_sep void clear concode_elem_sep void lock concode_elem_sep void putNoLock concode_elem_sep T getNoLock concode_elem_sep void remove concode_elem_sep void remove [/INST] void function ( long arg0 , @ NonNull T arg1 ) { lock . lock ( ) ; try { map . put ( arg0 , new WeakReference < T > ( arg1 ) ) ; } finally { lock . unlock ( ) ; } </s>