Use a lru cache to limit the size of the internal file cache
Instead of having an unbounded internal file cache which will
eventually absorb all memory of the running/containing python
process have the size of that cache be limited by an optionally
provided size (and have eviction be based on how recent a cached
entry was used).
Reviewed: https:/ /review. openstack. org/176104 /git.openstack. org/cgit/ openstack/ taskflow/ commit/ ?id=33e9ccc4256 6f4b666e04c1291 bf01539288ffaf
Committed: https:/
Submitter: Jenkins
Branch: master
commit 33e9ccc42566f4b 666e04c1291bf01 539288ffaf
Author: Joshua Harlow <email address hidden>
Date: Tue Apr 21 12:49:06 2015 -0700
Use a lru cache to limit the size of the internal file cache
Instead of having an unbounded internal file cache which will
eventually absorb all memory of the running/containing python
process have the size of that cache be limited by an optionally
provided size (and have eviction be based on how recent a cached
entry was used).
Fixes bug 1458248
Change-Id: I5e59efc4edd51b 05cfb1e67d3e701 4e378e352aa