module documentation

File-based token cache used by the SDK.

The asynchronous TokenCache stores named tokens in a YAML file. nebius.aio.token.file_cache.async_flock.Lock serializes access from concurrent processes and coroutines.

The tokens key contains mappings from Token.to_dict. A mapping can contain an expires_at timestamp. The cache ignores and removes expired tokens.

Example

cache = TokenCache() await cache.set("my-token", Token("abc", expiration=...)) tok = await cache.get("my-token")
Class TokenCache A simple asynchronous file-based token cache.
Variable log Undocumented

Undocumented