Issue 31

Here's basically an alternate proposal:
https://github.com/alexsnaps/ehcache3/tree/issue-31-checked