Can I get expiration time of specified key in django cache?

caching, django

Solution

cache._expire_info.get('foo') 

to get the unix timestamp

Problem

It must be stored somewhere. I can change it with `set()`/`incr()`, but I couldn't find the way to read it.

Original source