]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: Add WebCache
authorMarcel Lauhoff <marcel.lauhoff@clyso.com>
Tue, 11 Feb 2025 12:48:22 +0000 (13:48 +0100)
committerMarcel Lauhoff <marcel.lauhoff@clyso.com>
Mon, 1 Jun 2026 16:43:29 +0000 (18:43 +0200)
commit9618827200a5e7d686bb1e65dcf3f2bb2b1ee4df
tree94737f7f4bcd1d21bdc97b68e8669d2136d139ce
parent3cd3c113486121c222c9de15cf5848347db2c18a
common: Add WebCache

A cache data structure for values that need to be retrieved form
outside systems (e.g Key Management Systems).

Features:
- Thread safe, optimized for concurrent lookups and cache hits
- Entry TTL expiration
- Cache replacement strategy tuned to "web" workloads (SIEVE)
- Performance Counters on hit, miss, expire, size, capacity, clears

Signed-off-by: Marcel Lauhoff <marcel.lauhoff@clyso.com>
On-behalf-of: SAP marcel.lauhoff@sap.com
src/common/web_cache.h [new file with mode: 0644]
src/test/common/CMakeLists.txt
src/test/common/test_web_cache.cc [new file with mode: 0644]