bucketcache.config¶
-
class
bucketcache.config.BackendConfig[source]¶ Bases:
represent.core.ReprMixin,objectBase class for
Backendconfiguration classes.
-
class
bucketcache.config.PickleConfig(protocol=2, fix_imports=True, encoding='ASCII', errors='strict')[source]¶ Bases:
bucketcache.config.BackendConfigConfiguration class for
PickleBackendParameters reflect those given to
pickle.dump()andpickle.load().Note
On Python 2, the following parameters are ignored:
- fix_imports
- encoding
- errors
-
class
bucketcache.config.JSONConfig(skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, dump_cls=None, indent=None, separators=None, default=None, sort_keys=False, load_cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None)[source]¶ Bases:
bucketcache.config.BackendConfigConfiguration class for
JSONBackendParameters reflect those given to
json.dump()andjson.load().Note
json.dump()andjson.load()both have parameters called cls, so they are named dump_cls and load_cls.
-
class
bucketcache.config.MessagePackConfig(default=None, pack_encoding='utf-8', unicode_errors='strict', use_single_float=False, autoreset=1, use_bin_type=1, object_hook=None, list_hook=None, use_list=1, unpack_encoding='utf-8', object_pairs_hook=None)[source]¶ Bases:
bucketcache.config.BackendConfigConfiguration class for
MessagePackBackendParameters reflect those given to
msgpack.pack()andmsgpack.unpack().Note
msgpack.pack()andmsgpack.unpack()both have parameters called encoding, so they are named pack_encoding and unpack_encoding.