9#ifndef SQUID_SRC_TESTS_TESTSWAPDIR_H
10#define SQUID_SRC_TESTS_TESTSWAPDIR_H
23 uint64_t
maxSize()
const override;
35 void parse(
int,
char*)
override;
39 bool smpAware()
const override {
return false; }
RefCount< TestSwapDir > TestSwapDirPointer
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
manages a single cache_dir
bool hasReadableEntry(const StoreEntry &) const override
whether this cache dir has an entry with e.key
uint64_t currentCount() const override
the total number of objects stored right now
void evictIfFound(const cache_key *) override
void evictCached(StoreEntry &) override
uint64_t currentSize() const override
current size
StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *) override
void finalizeSwapoutSuccess(const StoreEntry &) override
finalize the successful swapout that has been already noticed by Store
void parse(int, char *) override
void reconfigure() override
void stat(StoreEntry &) const override
bool canStore(const StoreEntry &e, int64_t diskSpaceNeeded, int &load) const override
check whether we can store the entry; if we can, report current load
StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *) override
bool unlinkdUseful() const override
whether SwapDir may benefit from unlinkd
bool smpAware() const override
whether this disk storage is capable of serving multiple workers
uint64_t maxSize() const override
void finalizeSwapoutFailure(StoreEntry &) override
abort the failed swapout that has been already noticed by Store
unsigned char cache_key
Store key.