http://www.playframework.org/documentation/2.0.2/JavaCache
Atm i can’t find the Cache.remove method. I guess it’s not implemented yet?
Then I would need to use a 3rd party library cache solution such as memcached for now.
// 2.0 final
Cache.set("item.key", null, 0)
// later
Cache.remove("item.key")
Although it’s totally unclear it can be read as:
Since
Play 2.0 finalto remove cache entry use:(it will set cache for
item.keywithnullvalue, which will expire after 0 seconds)‘later’ means that somebody forgot to add this method and it will be added later 😉
Edit:
This issue is already addressed in Play’s Lighthouse