> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CredentialsCacheConfig

> atoti.CredentialsCacheConfig(\
>
>     \*,\
>
>     *max\_count*: [int](https://docs.python.org/3/builtins/functions.html#int) = `10000`,\
>
> )

The config of the cache of accepted credentials.

Checking a password can be slow (the password encoder is memory-hard, e.g. Argon2),
so the session remembers the credentials it already accepted instead of checking them again
on every request.
Only successful checks are cached: a rejected password always runs the full check.

### Attributes

#### *max\_count*

How many accepted credentials pairs are remembered at once.

Once reached, remembering another pair drops the least recently used one.

`0` disables the cache.
