(cache)
return LRUCache(cache.capacity)
Create an empty copy of the given cache.
Create an empty copy of the given cache.
Create an empty copy of the given cache .
def copy_cache(cache):
    """Create an empty copy of the given cache."""
    if cache is None:
        return None
    elif type(cache) is dict:
        return {}
    return LRUCache(cache.capacity)
def copy_cache ( cache ) : if cache is None : return None elif type ( cache ) is dict : return { } return LRUCache ( cache . capacity )