class_docstr: Cache storage that persists data to disk
  This is the default cache persistence layer for `@st.cache_data`
class_docstr_tok: ["Cache","storage","that","persists","data","to","disk","This","is","the","default","cache","persistence","layer","for","`","@","st.cache_data","`"]
docstr: Delete all keys for the current storage
docstr_tok: ["Delete","all","keys","for","the","current","storage"]
code: def clear(self) -> None:
      """Delete all keys for the current storage"""
      cache_dir = get_cache_folder_path()
  
      if os.path.isdir(cache_dir):
          # We try to remove all files in the cache directory that start with
          # the function key, whether `clear` called for `self.persist`
          # storage or not, to avoid leaving orphaned files in the cache directory.
          for file_name in os.listdir(cache_dir):
              if self._is_cache_file(file_name):
                  os.remove(os.path.join(cache_dir, file_name))
  
imports: from __future__ import annotations
  import math
  import os
  import shutil
  from streamlit import util
  from streamlit.file_util import get_streamlit_file_path, streamlit_read, streamlit_write
  from streamlit.logger import get_logger
  from streamlit.runtime.caching.storage.cache_storage_protocol import CacheStorage, CacheStorageContext, CacheStorageError, CacheStorageKeyNotFoundError, CacheStorageManager
  from streamlit.runtime.caching.storage.in_memory_cache_storage_wrapper import InMemoryCacheStorageWrapper
label_desc: Use image node_id 7 for calling the LocalDiskCacheStorage obj's underlying member method code with example usage: obj.clear() without return types