11#ifndef SQUID_SRC_CACHEDIGEST_H
12#define SQUID_SRC_CACHEDIGEST_H
14#include "mem/forward.h"
51 void init(uint64_t newCapacity);
void cacheDigestGuessStatsReport(const CacheDigestGuessStats *stats, StoreEntry *sentry, const SBuf &label)
void cacheDigestGuessStatsUpdate(CacheDigestGuessStats *stats, int real_hit, int guess_hit)
void cacheDigestReport(CacheDigest *cd, const SBuf &label, StoreEntry *e)
void updateCapacity(uint64_t newCapacity)
changes mask size to fit newCapacity, resets bits to 0
double usedMaskPercent() const
percentage of mask bits which are used
static uint32_t CalcMaskSize(uint64_t cap, uint8_t bpe)
void init(uint64_t newCapacity)
void add(const cache_key *key)
CacheDigest * clone() const
produce a new identical copy of the digest object
bool contains(const cache_key *key) const
void clear()
reset the digest mask and counters
MEMPROXY_CLASS(CacheDigest)
void remove(const cache_key *key)
unsigned char cache_key
Store key.