class documentation
class PureFileCacheReceiver(ParentReceiver): (source)
Constructor: PureFileCacheReceiver(cache)
Receiver that reads tokens from a ThrottledTokenCache.
Behavior
- _fetch returns the token stored in the cache or
nebius.aio.token.token.Token.emptywhen no token exists. - can_retry returns False; callers should not apply transport retries to a local file cache.
| Parameters | |
| cache | Throttled token cache implementation. |
| Method | __init__ |
Create a receiver backed by cache. |
| Method | can |
Return False to indicate no retries should be attempted. |
| Async Method | _fetch |
Return the cached token or an empty token. |
| Instance Variable | _cache |
Undocumented |
Inherited from Receiver:
| Async Method | fetch |
Fetch a token and record it as the latest value. |
| Property | latest |
Return the latest fetched token or None. |
| Instance Variable | _latest |
The most recently fetched token, or None if no token has been fetched yet. Implementations may update this to support inspection or caching by callers. |