- Type Parameters:
T
- resource
- All Known Subinterfaces:
- Indexer<T>, SyncableStore<T>
- All Known Implementing Classes:
- Cache, ProcessorStore
public interface Store<T>
Store is a generic object storage interface. Reflector knows how to watch a server
and update a store. A generic store is provided, which allows Reflector to be used
as a local caching system, and an Least Recently Used store, which allows Reflector
to work like a queue of items yet to be processed.
It makes no assumptions about the stored object identity; it is the responsibility
of a Store implementation to provide a mechanism to correctly key objects and to
define the contract for obtaining objects by some arbitrary key type.
This is ported from official go client: https://github.com/kubernetes/client-go/blob/master/tools/cache/store.go
Refactored to only expose read methods