cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benny Menzel <>
Subject Shared Cache Strategy
Date Mon, 18 Jul 2016 16:37:28 GMT
Dear Community,

We are using Cayenne Server v3.0.2.

We recently programmatically switched to the SHARED_CACHE Strategy for some of our fetches
and needed to undo that change because it did not work as we expected (maybe we misunderstood
that strategy):

1. Loading a Model from the Database for the first time should query the database (seems to
2. Loading the same model from the Database the second time should get the model from cache
(seems to work)
3. Modifying the model and committing the changes should update the model in the database
AND the cache (seems not to work correctly, although the new values are found in the database)

4. Displaying the Models Properties without a refreshQuery displays the properties as they
were in step 1 or 2; It does not display the correct values from the database

Didn’t I understand the Shared Cache correctly or is it some kind of bug that a commit does
not update the Cache?

Thank you in advance,
View raw message