MCPcopy Create free account
hub / github.com/erans/pgsqlite / is_empty

Method is_empty

src/cache/ttl_cache.rs:566–568  ·  view source on GitHub ↗

Check if the cache is empty

(&self)

Source from the content-addressed store, hash-verified

564
565 /// Check if the cache is empty
566 pub fn is_empty(&self) -> bool {
567 self.entries.read().is_empty()
568 }
569
570 /// Get entries that will expire within the given duration
571 pub fn entries_expiring_within(&self, duration: Duration) -> Vec<K> {

Callers 15

generate_keyMethod · 0.45
evict_least_valuableMethod · 0.45
normalize_queryMethod · 0.45
evict_lru_entryMethod · 0.45
normalize_queryMethod · 0.45
encode_numericMethod · 0.45
decode_numericMethod · 0.45

Calls 1

readMethod · 0.80

Tested by

no test coverage detected