anymodel.storages.short_long¶
Composite storage implementation with short and long-term storage.
This module provides a storage backend that combines two storage backends, typically for implementing hot/cold storage strategies.
Classes¶
- class anymodel.storages.short_long.ShortLongStorage(short_storage, long_storage)[source]¶
Bases:
StorageComposite storage with short-term and long-term backends.
Combines two storage backends to implement tiered storage strategies, checking short-term storage first before falling back to long-term storage.