mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-14 11:15:09 +08:00
ENH: Add zipline.utils.cache.
Implements a `CachedObject` utility class for wrapping cached results with an expiration date.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user