impactrudia / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
0 stars 0 forks source link

Objectify adding non annotated cache objectify entities to memcache with blank values #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Perform a GET on a Objectify model that is not annotated with @Cache
2. Step into EntityMemcache.java (Objectify class) @ line 312 and notice that a 
memcache entry is added for given model and key

What is the expected output? Expect for calls to the non annotated classes 
should not be added to memcache, basically now it adds a blank memcache entry

Consider not caching entities that have a blank expirationInSeconds or even 
better if you can detect or not that the entity has a cache annotation and then 
simply skip

What do you see instead? Non annotated classes being added to memcache with 
blank values.

What version of the product are you using?  4.0rc1

On what operating system? MAC OS X 10.8.5

Please provide any additional information below.

Original issue reported on code.google.com by desole...@gmail.com on 16 Jan 2014 at 10:06

Attachments:

GoogleCodeExporter commented 9 years ago
This was fixed in 4.0rc2.

Original comment by lhori...@gmail.com on 16 Jan 2014 at 10:46