class documentation
class TokenCache: (source)
Constructor: TokenCache(cache_file, path_create_mode, file_create_mode, flock_timeout)
A simple file-based token cache.
Method | __init__ |
Undocumented |
Async Method | get |
Get a token from the cache by name. |
Async Method | remove |
Remove a token from the cache by name. |
Async Method | remove |
Remove a token from the cache by name if it matches the provided token. |
Async Method | set |
Set a token in the cache by name. |
Instance Variable | cache |
Undocumented |
Instance Variable | file |
Undocumented |
Instance Variable | flock |
Undocumented |
Instance Variable | path |
Undocumented |
Method | _yaml |
Dump tokens to a YAML string. |
Method | _yaml |
Parse YAML data from a string. |