Refactor cached_property_with_ttl.
authorGeorge Sakkis <george.sakkis@gmail.com>
Tue, 21 Apr 2015 00:08:27 +0000 (03:08 +0300)
committerGeorge Sakkis <george.sakkis@gmail.com>
Tue, 21 Apr 2015 00:16:59 +0000 (03:16 +0300)
commit96dcca694038878a21ce17372066de3592fd4ebd
treed1ed57e0670c901473a0730dded3e7d334140db9
parent0268c61fea1cbd3d29363afb30e07ef3420f17cf
Refactor cached_property_with_ttl.

Cache (value, time) in the object's __dict__ instead of doing an extra lookup
in a '_cache' dict; also avoids the potential name clash with an unrelated
attribute named '_cache'.
cached_property.py