01PY↗TTL Cache DecoratorFunction caching with time-to-live (TTL) expiration.import functools import time from typing import Any, Callable #decorator#cachemedium