[Opensource] valid value cache maintenance?
Michael Rimov
rimovm at centercomp.com
Tue Jan 28 12:14:21 PST 2003
At 12:09 AM 1/26/2003 -0800, you wrote:
>hi,
>
>Is there a bug in the logic for maintaining valid-value cache
>integrity? I've got an exception that implies that the cache for valid
>values was not updated properly when a record was added.
>
>Expresso promises to maintain ValidValue caches by clearing an affected
>cache during a DBObject.delete(), DBObject.add(), etc. However, this
>promise seems to require that CacheManager.addCacheEventListener() be
>called during DBObject.setLookupObject(). I don't see this in code.
Well, I could swear that it should be working correctly... but you're
absolutely right, I can't find the code anywhere,.. I would personally
have the cache listener created during
getValuesDefault()
Since that is when the ValidValuesCache is created and the ValidValuesCache
should be listening to the basic DBObject cache. (Unless I'm missing
something :))
Good catch!
-Mike
>Am I missing something?
>
>larry
>
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list