With django.core.cache.backends.locmem.LocMemCache this worked:
key = cache.make_key('foo')
cache.validate_key(key)
t = cache._expire_info.get(key)
But it breaks with django.core.cache.backends.memcached.MemcachedCache
I get error: 'MemcachedCache' object has no attribute '_expire_info'
Is there an universal or memcached-specific way to get expiration time for specified key?