Reputation: 16148
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")
Upvotes: 7
Views: 1450
Reputation: 55798
Although it's totally unclear it can be read as:
Since Play 2.0 final
to remove cache entry use:
Cache.set("item.key", null, 0);
(it will set cache for item.key
with null
value, 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
Upvotes: 9