Allow to set second level cache lifetime through mapping

Hi,

I don't fully understand the new second-level cache feature yet, but the doc looks promising. I realized it could be really nice to be able to specify the lifetime directly through mapping.

I'm not sure if this is a good idea yet, please tell me. I've updated the tests and the doc too.