9#ifndef SQUID_SRC_STORE_DISKS_H
10#define SQUID_SRC_STORE_DISKS_H
27 uint64_t
maxSize()
const override;
28 uint64_t
minSize()
const override;
void storeDirCloseSwapLogs(void)
void storeDirOpenSwapLogs(void)
void free_cachedir(Store::DiskConfig *swap)
void storeDirSwapLog(const StoreEntry *e, int op)
void allocate_new_swapdir(Store::DiskConfig &swap)
int storeDirWriteCleanLogs(int reopen)
High-level store statistics used by mgr:info action. Used inside PODs!
manages a single cache_dir
summary view of all disk caches (cache_dirs) combined
void reference(StoreEntry &) override
somebody needs this entry (many cache replacement policies need to know)
void create() override
create system resources needed for this store to operate in the future
int64_t maxObjectSize() const override
the maximum size of a storable object; -1 if unlimited
int64_t secondLargestMaximumObjectSize
the second-biggest Disk::maxObjectSize()
void evictCached(StoreEntry &) override
static void Dump(const DiskConfig &, StoreEntry &, const char *name)
prints the configuration into the provided StoreEntry
uint64_t currentCount() const override
the total number of objects stored right now
bool dereference(StoreEntry &e) override
bool hasReadableEntry(const StoreEntry &) const
whether any of disk caches has entry with e.key
void getStats(StoreInfoStats &stats) const override
collect statistics
void configure()
update configuration, including limits (re)calculation
uint64_t currentSize() const override
current size
int64_t largestMaximumObjectSize
maximum of all Disk::maxObjectSize()s
uint64_t minSize() const override
the minimum size the store will shrink to via normal housekeeping
void maintain() override
perform regular periodic maintenance; TODO: move to UFSSwapDir::Maintain
void evictIfFound(const cache_key *) override
int64_t accumulateMore(const StoreEntry &) const
SwapDir * store(size_t index) const
bool updateAnchored(StoreEntry &) override
void sync() override
prepare for shutdown
void updateHeaders(StoreEntry *) override
make stored metadata and HTTP headers the same as in the given entry
void stat(StoreEntry &) const override
int64_t largestMinimumObjectSize
maximum of all Disk::minObjectSize()s
static SwapDir * SelectSwapDir(const StoreEntry *)
int callback() override
called once every main loop iteration; TODO: Move to UFS code.
StoreEntry * get(const cache_key *) override
bool anchorToCache(StoreEntry &) override
uint64_t maxSize() const override
static void Parse(DiskConfig &)
parses a single cache_dir configuration line
static SwapDir & Dir(size_t index)
static bool SmpAware()
whether any disk cache is SMP-aware
unsigned char cache_key
Store key.