def METHOD_NAME(store):
    if isinstance(store, MemoryCache):
        return MemoryCacheFile
    elif isinstance(store, DiskCache):
        return DiskCacheFile
    elif isinstance(store, RedisCache):
        return RedisCacheFile
    else:
        app_log.warning(f'cache: ignoring unknown store {store}')
        return CacheFile