PersisterConfig
stableConfiguration options for persisters
Configuration interface for creating persister instances. Defines storage backend, serialization options, and cache management settings.
PersistenceConfiguration
Signature
interface PersisterConfig {burstKey?: string;prefix?: string;debounceTime?: number;}
Parameters
burstKey
stringDefault: 'package version'Version key to invalidate old cached data when breaking changes occur.
prefix
stringDefault: 'qortex'Prefix for storage keys to avoid conflicts with other applications.
debounceTime
numberDefault: 100Time in milliseconds to debounce save operations for performance.
Behavior
Storage Interface
Defines the storage backend interface
Serialization
Configurable data serialization and deserialization
Age Management
Configurable cache age limits
Flexible
Supports various storage backends and configurations