Cache: Add ability to use Proc as 'expires_in' key

Sometimes calculation of expires_in can spend a lot of time, so, will be great to do it only if it needed.

According to: https://github.com/mperham/dalli/pull/531