jina.drivers.cache¶
-
class
jina.drivers.cache.
BaseCacheDriver
(with_serialization=False, *args, **kwargs)[source]¶ Bases:
jina.drivers.index.BaseIndexDriver
The driver related to
BaseCache
- Parameters
with_serialization (
bool
) – feed serialized doc to the CacheIndexerargs –
kwargs –
-
class
jina.drivers.cache.
TaggingCacheDriver
(tags, *args, **kwargs)[source]¶ Bases:
jina.drivers.cache.BaseCacheDriver
Label the hit-cache docs with certain tags
- Parameters
tags (
Dict
) – the tags to be updated on hit docs