// getLocked performs a get operation assuming that the caller // is already holding the mutex. func (in *InMem) getLocked(key Key, data llrb.Tree) ([]byte, error) { if len(key) == 0 { return nil, emptyKeyError() } val := data.Get(proto.RawKeyValue{Key: key}) if val == nil { return nil, nil } return val.(proto.RawKeyValue).Value, nil }