ENH: Add zipline.utils.cache.

Implements a `CachedObject` utility class for wrapping cached results
with an expiration date.
This commit is contained in:
Scott Sanderson
2015-10-01 18:03:53 -04:00
parent 00c413e9d4
commit b766ce6ebd
3 changed files with 85 additions and 1 deletions
+5 -1
View File
@@ -9,9 +9,10 @@ from zipline.modelling import (
expression,
)
from zipline.utils import (
cache,
memoize,
test_utils,
preprocess,
test_utils,
)
@@ -66,3 +67,6 @@ class DoctestTestCase(TestCase):
def test_preprocess_docs(self):
self._check_docs(preprocess)
def test_cache_docs(self):
self._check_docs(cache)