store.cache.backends.filecache
==============================

.. py:module:: store.cache.backends.filecache


Classes
-------

.. autoapisummary::

   store.cache.backends.filecache.FileCache


Module Contents
---------------

.. py:class:: FileCache(cache_configuration: Any)

   Bases: :py:obj:`e3.store.cache.backends.base.Cache`


   .. py:attribute:: cache_suffix
      :value: '.cache'



   .. py:attribute:: cache_dir


   .. py:method:: clear() -> None


   .. py:method:: delete(uid: str) -> None


   .. py:method:: _create_cache_dir() -> None


   .. py:method:: uid_to_file(uid: str) -> str

      Convert a resource uid to a cache file path.

      This backend assumes that the uid is a safe value for a file name.
      :param uid: the resource uid



   .. py:method:: _is_expired(fd: IO[bytes]) -> bool
      :staticmethod:


      Determine if an open cache file has expired.

      Automatically delete the file if it has passed its expiry time.



   .. py:method:: get(uid: str, default: Any = None) -> Any


   .. py:method:: set(uid: str, value: Any, timeout: int = DEFAULT_TIMEOUT) -> bool


