docs: def create_cache(directory, compress_level=6, value_type_is_binary=False, **kwargs):
      """
      Create a html cache. Html string will be automatically compressed.
  
      :param directory: path for the cache directory.
      :param compress_level: 0 ~ 9, 9 is slowest and smallest.
      :param kwargs: other arguments.
      :return: a `diskcache.Cache()`
      """
      cache = diskcache.Cache(
          directory,
          disk=CompressedDisk,
          disk_compress_level=compress_level,
          disk_value_type_is_binary=value_type_is_binary,
          **kwargs
      )
      return cache