Add in-memory tree cache
Before raising this MR, consider whether the following are required, and complete if so:
-
Unit tests -
Metrics -
Documentation update(s)
Summary
This MR adds the in-memory cache for GetTree
calls. It stores the full list of flattened directories in to CAS, and map the root_digest
to the GetTreeResponse
message in memory. Upon a cache hit, it should save the tree traversal and some CAS look-ups.
The configs to enable this feature are marked as experimental, as we'd like to test it it out and migrate to a more robust Redis-based cache if it proves to be useful.
Edited by Zehao Chen