Cats-Effect Ref Ref is a purely functional way of holding and mutating application state in memory. All of its operations are atomic and thread-safe.