Creates a new MapCache, optionally using map as the backing Map.
map
MapCache({Map<K, V>? map}) : _map = map ?? HashMap<K, V>();