Files
leveldb Team bb74ef7399 Add SetCapacity method to leveldb::Cache.
This change introduces a virtual SetCapacity method to the Cache interface, allowing the cache capacity to be adjusted dynamically. The LRUCache implementation evicts entries if the new capacity is smaller than the current usage. The ShardedLRUCache distributes the new capacity among its shards.

This functionality will be used in chromium to improve memory pressure handling. The
current Prune() functionality is not flexible enough to reduce the memory used by the
cache if necessary.

PiperOrigin-RevId: 974645811
2026-10-08 12:15:26 -07:00
..
2022-01-03 21:05:04 +00:00
2022-01-03 21:05:04 +00:00
2022-01-03 21:05:04 +00:00
2020-04-14 01:10:05 +00:00
2019-05-04 17:42:20 -07:00
2022-01-03 21:05:04 +00:00
2020-04-29 20:51:13 +00:00
2022-01-03 21:05:04 +00:00
2026-10-08 12:14:56 -07:00
2020-04-29 20:51:13 +00:00
2022-01-03 21:05:04 +00:00
2020-04-29 20:51:13 +00:00
2022-01-03 21:05:04 +00:00