pub fn create_cache(config: &CacheConfig) -> Result<Box<dyn Cache>, Error>
Create cache instance
Returns an error if cache type is not supported or configuration is invalid