cache package

Functions

get_document_cache_client()

rtype

CacheWithExpiration

get_model_cache_client()

rtype

CacheWithExpiration

Classes

Cache()

CacheDocument(func)

Decorator for caching documents in NLP steps.

CacheWithExpiration()

ExpiringCache(cache_client[, …])

Wrapper for the cache client to implement keys expiration.

MemoryCache([copy])

A simplistic cache which stores objects in memory.

ModelCacheClient([cache_client, expiration])

Cache client to enable model sharing across steps & pipelines (across whole process).