logicminds/virt — comment on commit a496c5f2e3037e09746c26297794595d6380aa03
File:  line 0
By logicminds:

Adding a TTL will work on some objects but for items like domain and guest where some of the data in the object is generated dynamically (domain.info.*) it makes little sense to expire the cache unless someone changes the hardware specs of the vm without restarting the virt connection object. Since the cleanup method does a good job of removing old guests with each query I have reduced the need for a TTL cache.

If we did add a TTL I might have the cache expire in 60 minutes. Moreover, we could just leave it up to the user as a disconnect will reset the cache and expire everything at once.