Cache¶
b2sdk caches the mapping between bucket name and bucket id, so that the user of the library does not need to maintain the mapping to call the api.
- class b2sdk.v2.AbstractCache[source]¶
- class b2sdk.v2.AuthInfoCache(info)[source]¶
A cache that stores data persistently in StoredAccountInfo.
- Parameters
info (
AbstractAccountInfo
) –
- list_bucket_names_ids()[source]¶
List buckets in the cache.
- Returns
list of tuples (bucket_name, bucket_id)
- clear()¶
- class b2sdk.v2.DummyCache[source]¶
A cache that does nothing.
- list_bucket_names_ids()[source]¶
List buckets in the cache.
- Returns
list of tuples (bucket_name, bucket_id)
- clear()¶