INNER CODE UNIT · Python

relies_on_default_ttl

redis/fastapi-redis-sdk · src/redis_fastapi/cache.py:60

def relies_on_default_ttl() -> bool:
    """Return ``True`` if any cache dependency falls back to ``default_ttl``."""
    return _default_ttl_in_use


# ---------------------------------------------------------------------------
# Key builder
# ---------------------------------------------------------------------------


def default_key_builder(
    request: Request,
    eviction_group: str = "",
    prefix: str = "",
) -> str:
    """Build a cache key from the request path and query string.

    Slashes in the path are replaced with colons.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…