Skip to content

cache.cache_capacity

cache_capacity(capacity: int) -> None

Set the runtime cache capacity.

Args

  • capacity: Set a new cache capacity. A non-positive value removes the capacity limit.