Skip to main content

NullCache.reset()

Read size_limit, cull_limit or eviction_policy, or set it (checked as Cache checks it)

Usage

Source

NullCache.reset(self, key: Literal['size_limit', 'cull_limit'], value: Any = ..., update: bool = True) -> int
 
NullCache.reset(self, key: Literal['eviction_policy'], value: Any = ..., update: bool = True) -> Literal['least-recently-stored', 'none']
 
NullCache.reset(self, key: str, value: Any = ..., update: bool = True) -> int | str

and return it.