Factor out store and zipcache from searcher to store pkg
Created by: rvantonder
Components store
and zipcache
can be reused by upcoming replacer
service, so am factoring it out of searcher
to pkg/store
instead of copying.
- Notes: I tried create
pkg/zipcache
but there's a circular dependency (zipcache_test
depends onstore/tmpStore
and store uses and depends on zipcache in its type definition. Wasn't obvious how to break the dependency.
Test plan: None, this just moves around existing code.