class ThreadSafe::MriCacheBackend
def compute_if_absent(key)
def compute_if_absent(key) if stored_value = _get(key) # fast non-blocking path for the most likely case stored_value else WRITE_LOCK.synchronize { super } end end
def compute_if_absent(key) if stored_value = _get(key) # fast non-blocking path for the most likely case stored_value else WRITE_LOCK.synchronize { super } end end