Skip to content
Peter Hilton edited this page Feb 12, 2012 · 17 revisions

Caching

An in-memory cache with expiry support is provided by Play.

Note: By default, this implementation is also used for Play’s internal caching.

You can find usage instructions in the play.api.cache.Cache API documentation.

Plugging in your own

To implement a different caching solution, use the following steps.

  1. In application.conf, set ehcacheplugin=disabled.
  2. Implement the play.api.CacheAPI interface.
  3. Implement play.api.Plugin.

Clone this wiki locally