How layered caching and synchronization works
devWhen using multiple cache handles (layers), CacheManager ensures data consistency:
PutandAddoperations: These are automatically executed on all registered cache handles in the manager.Getoperations: Behavior is controlled byCacheUpdateMode:None: No update occurs across handles on a hit.Up: Updates the handles "above" the current one in the hierarchy.All: Updates/Adds the item to all handles in the manager.
- Synchronization: For distributed environments, CacheManager can use Redis pub/sub to synchronize cache clients.