'Change the number of bytes that will be cached.'

def resize(self, max_size, after_cleanup_size=None):

    self._update_max_size(max_size, after_cleanup_size=after_cleanup_size)
    max_cache = max(int((max_size / 512)), 1)
    self._update_max_cache(max_cache)
