Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Linear cache] rework watches and storage in the cache to make code m…
…ore common between delta and sotw (#11) Following previous PRs on linear cache fixes in sotw, the implementation of linear cache has become more common between sotw and delta watches. This PR makes it clearer and reorganize the setup: - reorganize resource cache and watch tracking per resource, instead of per mode. This will enable changes like sotw using resource versions - avoid multiple marshaling of the resource when the version is already computed through marshaling (not in this PR, as potentially impactful on memory) - sotw and delta watches use a common model for their handling, with common code to compute subscription impact vs. cache. Only the generation of the response is different Signed-off-by: Valerian Roche <[email protected]>
- Loading branch information