v1.168.0
nautechsystems/nautilus_traderv1.168.0Jan 29, 2023by github-actions[bot]
AI Summary
Expands caching capabilities including general object storage, Redis integration, and improved actor state persistence.
Key Highlights
- Added `Cache` methods for adding and getting general 'user/custom' objects.
- Added `CacheDatabase` methods for general cache objects.
- Added `RedisCacheDatabase` support for persisted bytes objects.
- Added `Cache.actor_ids()`.
Breaking Changes
- Removed `Cache.clear_cache()` (redundant with the `.reset()` method).
New Features
- Added `Cache` `.add(...)` and `.get(...)` for general 'user/custom' objects.
- Added `CacheDatabase` `.add(...)` and `.load()` for general cache objects.
- Added `RedisCacheDatabase` `.add(...)` and `.load()`.
- Added `Cache.actor_ids()`.
- Improved logging for called action handlers.
Full Release Notes
# NautilusTrader 1.168.0 Beta Released on 29th January 2023 (UTC). ### Breaking Changes - Removed `Cache.clear_cache()` (redundant with the `.reset()` method) ### Enhancements - Added `Cache` `.add(...)` and `.get(...)` for general 'user/custom' objects (as bytes) - Added `CacheDatabase` `.add(...)` and `.load()` for general cache objects (as bytes) - Added `RedisCacheDatabase` `.add(...) `and `.load()` for general Redis persisted bytes objects (as bytes) - Added `Cache.actor_ids()` - Added `Actor` cached state saving and loading functionality - Improved logging for called action handlers when not overridden ### Fixes - Fixed configuration of loading and saving actor and strategy state