code: def create_cache(name):
      
      caches = {
          subclass.name(): subclass
          for subclass in Cache.__subclasses__()
      }
      return caches.get(name, NaiveCache)()
docs: Create a cache by name.
  
      Defaults to `NaiveCache`