Open piojo-zz opened 11 years ago
It is much simpler to use the FileCache module if we can do just like with any other file:
FileCache
with vsc.utils.cache("foo") as f: f.load("some_key") # yabbadabba
Instead of
try: f = vsc.utils.cache("foo") try: f.load("some_key") # yabbadabba except Something, err: pass finally: pass except SomethingElse, err2: pass
Our main users for this module are SL6 boxes, where the __enter__/__exit__ protocol is supported.
__enter__
__exit__
It is much simpler to use the
FileCache
module if we can do just like with any other file:Instead of
Our main users for this module are SL6 boxes, where the
__enter__
/__exit__
protocol is supported.