mumoshu/play2-memcached — pull request #23 by rmmeans (2013-08-10 05:28:21+00:00)
Title: Adding configurable timeouts on the future

In the scenario your memcached server is offline, then every single call takes one second before it fails and reports back to Play that the item is not in cache. If you have many cached items that must be retrieved to give a single response to a user, then having an outage on your memcached server becomes completely unacceptable.

In reality, most things that you cache in memcached could likely be fetched or recomposed directly from the master source in much less time than a second. This enhancement allows you to configure both the timeout duration and the timeout unit. If the properties are not specified in configuration, then the library will continue to function as before with a one second timeout.