我有两个对象 - ContentPage
,其中有一个集合ChildLinks
。
ContentPage
-----------
ID
Title
ChildLink
----------
ID
ParentPageID [ContentPage]
ChildPageID [ContentPage]
Priority
该ContentPage.ChildLinks
属性使用二级缓存。我正在使用 Fluent NH 来配置 Nhibernate,并使用 Nhibernate 3.1。缓存设置为集合和“ChildLink”类的“读写”。
我注意到,每当我删除 aChildLink
时,集合缓存都不会失效。因此,当我调用 时ContentPage.ChildLinks
,我得到一个错误:
no row with the given identifier exists
我已经关闭了缓存,它运行良好。缓存不应该自动失效吗?我使用 SysCache 作为缓存提供程序,使用 MySQL 作为数据库。
提前致谢!