Skip to content
5 changes: 5 additions & 0 deletions cacheaside.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ func (rca *CacheAside) trySetMultiKeyFn(
}
}()

// Case where we were unable to get any locks
if len(lockVals) == 0 {
return res, nil
}

vals, err := fn(ctx, mapsx.Keys(lockVals))
if err != nil {
return nil, err
Expand Down