row_cache class is meant to cache data for given table by wrapping some underlying data source. It gives away a mutation_reader which uses in-memory data if possible, or delegates to the underlying reader and populates the cache on-the-fly. Accesses to data in cache is tracked for eviction purposes by a separate entity, the cache_tracker. There is one such tracker for the whole shard.
3.9 KiB
3.9 KiB