b2sdk.cache – Cache

class b2sdk.cache.AbstractCache[source]

Bases: object

clear()[source]
abstract get_bucket_id_or_none_from_bucket_name(name)[source]
abstract get_bucket_name_or_none_from_allowed()[source]
abstract save_bucket(bucket)[source]
abstract set_bucket_name_cache(buckets)[source]
class b2sdk.cache.AuthInfoCache(info)[source]

Bases: b2sdk.cache.AbstractCache

Cache that stores data persistently in StoredAccountInfo

__init__(info)[source]

Initialize self. See help(type(self)) for accurate signature.

get_bucket_id_or_none_from_bucket_name(name)[source]
get_bucket_name_or_none_from_allowed()[source]
save_bucket(bucket)[source]
set_bucket_name_cache(buckets)[source]
class b2sdk.cache.DummyCache[source]

Bases: b2sdk.cache.AbstractCache

Cache that does nothing

get_bucket_id_or_none_from_bucket_name(name)[source]
get_bucket_name_or_none_from_allowed()[source]
save_bucket(bucket)[source]
set_bucket_name_cache(buckets)[source]
class b2sdk.cache.InMemoryCache[source]

Bases: b2sdk.cache.AbstractCache

Cache that stores the information in memory

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

get_bucket_id_or_none_from_bucket_name(name)[source]
get_bucket_name_or_none_from_allowed()[source]
save_bucket(bucket)[source]
set_bucket_name_cache(buckets)[source]