Skip to content

Commit

Permalink
new envs
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Aug 12, 2024
1 parent 193d9e5 commit 5188110
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def get_html_formatted_unit(
# - the least recently used items will be discarded first to make space when necessary.
#

_CACHE_MAXSIZE: Final = (
1000 # number of items i.e. ServiceInputGet/ServiceOutputGet insteances
)
_CACHE_TTL: Final = 60 * 60 # secs
_CACHE_MAXSIZE: Final = int(
os.getenv("CACHETOOLS_CACHE_MAXSIZE", "100")
) # number of items i.e. ServiceInputGet/ServiceOutputGet instances
_CACHE_TTL: Final = int(os.getenv("CACHETOOLS_CACHE_TTL_SECS", "60")) # secs


def _hash_inputs(
Expand Down

0 comments on commit 5188110

Please sign in to comment.