This is one of the first major pitfalls of transaction processing: ORM-based frameworks require a transaction in order to trigger the synchronization between the object cache and the database.
这是事务处理的主要陷阱之一:基于 ORM 的框架需要一个事务来触发对象缓存与数据库之间的同步。
Database information is mapped using a JCache implementation, cached in an ActiveSpace clustered cache and distributed to the application through an object relational mapping.
数据库信息使用JCache实现进行映射,缓存在ActiveSpace的集群缓存中,并通过对象关系映射提供给应用程序。
Otherwise, go to the database, fetch the requisite data, map it to an object, and add it to the cache.
否则,转至数据库、获取必需的数据、将其映射到对象中并把它添加到缓存中。
应用推荐