-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GAECache not working in combination with Scala plugin #46
Comments
Do you have more info about this issue just to know a bit more about it at Pascal On Mon, Apr 9, 2012 at 9:45 PM, Kah Tang <
|
I'm working on a Scala + GAE + Sienna combination in the Play framework. I have an object (Serializable) which I'm trying to cache with Cache.set(). When I run my App locally, it will put the object in memory. So far so good. Before deploying it to GAE I'm changing the application.conf to production. When I make a call to the URL that will trigger the Cache.set(), I would expect the cached object to be put into the Memcache of GAE. But when I opened the Memcache viewer it didn't show any cache hits (or misses). |
On Tue, Apr 10, 2012 at 8:19 AM, Kah Tang <
thanks
|
The data is retrieved in some way from the cache, but I have the feeling the cache is not wired to the Memcache API and instead just puts the cached object in Java's heap space. I took a peek in the plugin's source and see a new GAECache object is set to the Cache.forcedImpl variable in the GAEplugin code. What I think is missing is the Cache.init() call, which is needed to make the Cache set the cacheImpl to the forcedImpl's variable. (You can see this happening in Play's Cache class). |
This code of GAE plugin is quite old now and I know it was working in the On Tue, Apr 10, 2012 at 8:58 AM, Kah Tang <
|
I think I can make a fix for it. I'll fork the code and send you a pull request. |
I'm seeing this issue even without using the Scala plugin. Once deployed to GAE, |
When the GAE plugin is used in combination with the Scala plugin, Caching doesn't make use of the Memcache service of Google.
The text was updated successfully, but these errors were encountered: