preheat_open.api.cache.get_cache

preheat_open.api.cache.get_cache(config=None)

Factory function to create a cache instance based on the configuration.

Parameters:

config (Optional[CacheConfig]) – Cache configuration.

Return type:

Optional[Cache]

Returns:

An instance of a Cache subclass.