You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading back my objects, I noticed they are get from cache since Objectify was not notified that it should evict the updated entity from its cache.
I like the Objectify cache feature since it saves me the time to grab data from memcache and reconstuct the objects for each read, so I want my objects to be cached, but I want to be able to evict them.
Comment #1 originally posted by objectify on 2014-07-01T06:15:36.000Z:
As mentioned in the stackoverflow answer, you can workaround this immediately by directly deleting the cache entry from memcache. It's in the namespace ObjectifyFactory.MEMCACHE_NAMESPACE and the cache key is just the stringified (toWebSafeString()) version of the entity key.
Original issue 213 created by objectify on 2014-07-01T05:18:28.000Z:
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expecting an api to notify objectify that the object is out of date
What version of the product are you using? On what operating system?
4.0, on gae
Please provide any additional information below.
I'm persisting my objects through this code pattern
Reading back my objects, I noticed they are get from cache since Objectify was not notified that it should evict the updated entity from its cache.
I like the Objectify cache feature since it saves me the time to grab data from memcache and reconstuct the objects for each read, so I want my objects to be cached, but I want to be able to evict them.
This discussion says there was no solution in mid 2013, https://groups.google.com/forum/#!msg/objectify-appengine/n3FJjnYVVsk/6Xp99zReOKQJ
If it's still the case, I'd expect an API like
and by the way, I imagine the API would be more consistent if
was replaced by
Naturally, there's a costly workaround to the issue:
a copy of this was posted @ http://stackoverflow.com/questions/24502877/evict-objects-from-objectify-cache
The text was updated successfully, but these errors were encountered: