通过在connect . cf g中添加另外的配置修改(DefaultContentCache),缓存的站点可以分段为用户、站点、会话等(部分或所有)。
By adding additional configuration changes in connect.cfg (DefaultContentCache), the cached site can be segmented into user, site, session, and so on (all or some).
例如,它不需要会话缓存,也不和任何二级缓存或查询缓存有交互。
For example, it doesn't have session cache, and nor does it interact with any second-level or query cache.
如果使用有状态会话,不要忘记在执行DML前清除缓存,否则Hibernate将会更新或清除相关缓存(见下面的范例10)。
If you use a stateful session, don't forget to clear the cache before you execute the DML otherwise Hibernate will update or evict the related cache (See the Example 10 below for details).
应用推荐