Vona Cache
VonaJS provides a very powerful caching mechanism, including the following four features:
Mem Cache: Implemented based on lru-cacheRedis Cache: Implemented based on RedisSummer Cache (Two-Layer Cache): Implemented based on Mem Cache and Redis CacheCaching Decorator: Uses decorators to provide caching capabilities for any method of any class
Model Caching
VonaJS provides an out-of-the-box caching mechanism for Model based on Summer Cache. We just operate the ORM as usual, and the system handles the caching internally while ensuring consistency of cached data
- See: Vona ORM: Caching
Transaction and Cache Data Consistency
The Vona system adapts database transactions to the cache. When a database transaction fails, it automatically performs cache compensation operations, ensuring that the database data and cached data always remain consistent
- See: Transaction