Avatar for the aio-libs user
aio-libs
async-lru
BlogDocsChangelog

feat: add cache_contains() for read-only key lookup

#746Merged
Comparing
rahulkaushal04:feature/cache-contains
(
252aa4f
) with
master
(
e2ddf7a
)
CodSpeed Performance Gauge
0%
Untouched
63
Skipped
4

Benchmarks

67 total
test_cache_invalidate_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
380.9 µs378.4 µs
test_cache_clear_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
22.6 µs22.5 µs
test_internal_task_done_callback_microbenchmark[finished-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.8 ms1.8 ms
test_internal_task_done_callback_microbenchmark[cancelled-func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.6 ms1.6 ms
test_cache_invalidate_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_internal_task_done_callback_microbenchmark[exception-func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
test_internal_cache_hit_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
144.2 µs143.8 µs
test_internal_cache_hit_microbenchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
144 µs143.7 µs
test_cache_ttl_expiry_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
147.1 µs146.9 µs
test_internal_task_done_callback_microbenchmark[finished-func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_cache_ttl_expiry_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
135.3 µs135.1 µs
test_concurrent_cache_hit_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
86.4 ms86.3 ms
test_cache_invalidate_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
377.5 µs377.1 µs
test_cache_hit_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
82.1 ms82 ms
test_cache_ttl_expiry_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
135.1 µs135 µs
test_concurrent_cache_hit_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
80.3 ms80.2 ms
test_cache_hit_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
82 ms82 ms
test_concurrent_cache_hit_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
30.9 ms30.8 ms
test_cache_invalidate_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
377.3 µs377.1 µs
test_cache_miss_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
180.2 ms180.1 ms
test_cache_ttl_expiry_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
146.6 µs146.5 µs
test_cache_miss_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
145.2 ms145.2 ms
test_concurrent_cache_hit_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
98.7 ms98.6 ms
test_cache_miss_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
151.1 ms151.1 ms
test_cache_miss_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
174.4 ms174.3 ms

Commits

Click on a commit to change the comparison range
Base
master
e2ddf7a
-0.08%
docs: update README and tests to include examples for cache_contains method
a52d05f
6 days ago
by rahulkaushal04
+0.06%
refactor: add type hints to coro functions in cache_contains tests
252aa4f
6 days ago
by rahulkaushal04
© 2026 CodSpeed Technology
Home Terms Privacy Docs