Open CapdinCrando opened 4 months ago
Might be a good case for the builder pattern. https://refactoring.guru/design-patterns/builder
Looks like a good solution. We could also potentially have the builder choose Cache type (Set Associative), etc, based on called commands.
Currently there are 7 cache constructor inputs. It may be worthwhile to put certain ones in a struct, or move some to setter function.