Skip to content

Add in-memory tree cache

Zehao Chen requested to merge zchen723/tree-cache into master

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

Merge request reports

Loading