mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-22 07:42:16 +00:00
Add two test cases for the new loading_cache::insert() method: * test_loading_cache_insert verifies that insert() populates the cache and invokes the loader exactly once per key when caching is enabled. * test_loading_cache_insert_caching_disabled is a regression test for SCYLLADB-1699: when the cache is constructed with expiry == 0 (caching disabled), insert() must be a no-op rather than asserting in loading_cache::get_ptr() via caching_enabled(). The loader must not be invoked and the cache must remain empty. Refs SCYLLADB-1699
35 KiB
35 KiB