30 using HashFunction = std::function<CellType(const unsigned char*, size_t)>;
41 size_t requestsPerSecond,
void clearBucket(size_t bucket)
bool testAndSet(folly::ByteRange query)
bool test(folly::ByteRange query) const
std::vector< HashFunction > hashers_
requires E e noexcept(noexcept(s.error(std::move(e))))
std::function< CellType(const unsigned char *, size_t)> HashFunction
std::unique_ptr< CellType[]> bitBuf_
~SlidingBloomReplayCache() override=default
void timeoutExpired() noexceptoverride
SlidingBloomReplayCache(int64_t ttlInSeconds, size_t requestsPerSecond, double acceptableFPR, folly::EventBase *evb)
folly::Future< ReplayCacheResult > check(folly::ByteRange) override
std::chrono::milliseconds bucketWidthInMs_