dictrack.data_stores package#
Submodules#
dictrack.data_stores.base module#
- class dictrack.data_stores.base.BaseDataStore(scheduler_class=<class 'apscheduler.schedulers.background.BackgroundScheduler'>, check_interval=7200)#
Bases:
object- abstract flush()#
Implement for clearing all data from the data store.
- abstract load(group_id, name=None, **kwargs)#
Implement for retrieving data from the data store under the specified group_id. If name is None, retrieve all data under group_id; if name is provided, retrieve only the specified data.
- abstract remove(group_id, name=None, **kwargs)#
Implement for removing data from the data store under the specified group_id. If name is None, removes all data under group_id; if name is provided, removes only the specified data.
- start_scheduler()#
- abstract store(group_id, tracker, expire=None, expire_at=None, **kwargs)#
Implement for storing a single data item under the specified group_id in the data store.
- abstract store_all(group_id, trackers, expire=None, expire_at=None, **kwargs)#
Implement for storing multiple data items under the specified group_id in the data store.