3.2/bugfix/4101 memcache lifetime

Added a test case for Memcache driver and simplified cache lifetime normalization