コード例 #1
0
ファイル: multiple_caches.py プロジェクト: varunarya10/xappy
    def _apply_cache(self, indexpath, cachepath, cache_id):
        idx = IndexerConnection(indexpath)
        cm = XapianCacheManager(cachepath, id=cache_id)

        idx.set_cache_manager(cm)
        idx.apply_cached_items()
        idx.close()
コード例 #2
0
 def _apply_cache(self, indexpath, cm):
     idx = IndexerConnection(indexpath)
     idx.set_cache_manager(cm)
     idx.apply_cached_items()
     idx.close()