code: func (cr *cacheRecord) ref(triggerLastUsed bool) *immutableRef {
  	ref := &immutableRef{cacheRecord: cr, triggerLastUsed: triggerLastUsed}
  	cr.refs[ref] = struct{}{}
  	return ref
  }
docs: // hold ref lock before calling