#include "base/DelayedAsyncCalls.h"
#include "base/Packable.h"
#include "base/Range.h"
#include "base/RefCount.h"
#include "comm/forward.h"
#include "hash.h"
#include "http/forward.h"
#include "http/RequestMethod.h"
#include "HttpReply.h"
#include "MemObject.h"
#include "RemovalPolicy.h"
#include "store/Controller.h"
#include "store/forward.h"
#include "store_key_md5.h"
#include "StoreIOBuffer.h"
#include "StoreStats.h"
#include <ostream>
![](Store_8h__incl.png)
Go to the source code of this file.
Classes | |
class | StoreEntry |
class | Store::EntryGuard |
Namespaces | |
Store | |
Typedefs | |
typedef void(* | STOREGETCLIENT) (StoreEntry *, void *cbdata) |
Variables | |
StoreIoStats | store_io_stats |
FREE | destroyStoreEntry |
Typedef Documentation
◆ STOREGETCLIENT
typedef void(* STOREGETCLIENT) (StoreEntry *, void *cbdata) |
Function Documentation
◆ expiresMoreThan()
int expiresMoreThan | ( | time_t | , |
time_t | |||
) |
Definition at line 1338 of file store.cc.
References squid_curtime.
◆ operator<<()
std::ostream& operator<< | ( | std::ostream & | os, |
const StoreEntry & | e | ||
) |
Definition at line 2044 of file store.cc.
References DELAY_SENDING, EBIT_TEST, ENTRY_ABORTED, ENTRY_BAD_LENGTH, ENTRY_FWD_HDR_WAIT, ENTRY_NEGCACHED, ENTRY_REQUIRES_COLLAPSING, ENTRY_REVALIDATE_ALWAYS, ENTRY_REVALIDATE_STALE, ENTRY_SPECIAL, ENTRY_VALIDATED, StoreEntry::flags, StoreEntry::hasMemStore(), StoreEntry::hasTransients(), MemObject::XitTable::io, MemObject::MemCache::io, KEY_PRIVATE, StoreEntry::locks(), StoreEntry::mem_obj, StoreEntry::mem_status, MemObject::memCache, NOT_IN_MEMORY, PING_NONE, StoreEntry::ping_status, REFRESH_REQUEST, RELEASE_REQUEST, StoreEntry::shareableWhenPrivate, STORE_PENDING, StoreEntry::store_status, StoreEntry::swap_dirn, StoreEntry::swap_filen, StoreEntry::swap_status, SWAPOUT_NONE, and MemObject::xitTable.
◆ storeAppendPrintf()
void storeAppendPrintf | ( | StoreEntry * | , |
const char * | , | ||
... | |||
) |
Definition at line 855 of file store.cc.
References StoreEntry::vappendf().
Referenced by DiskThreadsIOStrategy::aioStats(), asnStats(), cacheDigestGuessStatsReport(), cacheDigestReport(), carpCachemgr(), clientdbDump(), Mgr::CloseKidSection(), commIncomingStats(), Auth::User::CredentialsCacheStats(), DelaySpec::dump(), DelayPool::dump(), ClientDelayPool::dump(), Mgr::MenuAction::dump(), MessageDelayPool::dump(), Fs::Ufs::UFSSwapDir::dump(), Mgr::StoreIoAction::dump(), Store::Disks::Dump(), Format::Format::dump(), Mgr::ReconfigureAction::dump(), DiskdAction::dump(), Ipc::ReadWriteLockStats::dump(), Mgr::RotateAction::dump(), Mgr::OfflineToggleAction::dump(), Auth::SchemeConfig::dump(), dump_access_log(), dump_acl_address(), dump_acl_b_size_t(), dump_acl_tos(), dump_address(), dump_b_int64_t(), dump_b_size_t(), dump_b_ssize_t(), dump_cachemgrpasswd(), dump_CpuAffinityMap(), dump_denyinfo(), dump_externalAclHelper(), dump_generic_port(), dump_HeaderWithAclList(), dump_icap_service_failure_limit(), dump_int(), dump_int64_t(), dump_IpAddress_list(), dump_kb_int64_t(), dump_memcachemode(), dump_onoff(), dump_peer(), dump_peers(), dump_PortCfg(), dump_refreshpattern(), dump_removalpolicy(), dump_sslproxy_cert_adapt(), dump_sslproxy_cert_sign(), dump_string(), dump_time_nanoseconds(), dump_tristate(), dump_u_short(), dump_uri_whitespace(), dump_UrlHelperTimeout(), dump_wccp2_amethod(), dump_wccp2_method(), dump_wccp2_service(), dump_wccp2_service_info(), dump_wordlist(), DumpAvgStat(), DumpCountersStats(), DumpInfo(), DumpIoStats(), DumpMallocStatistics(), DelayConfig::dumpPoolCount(), ClientDelayConfig::dumpPoolCount(), Rock::SwapDir::dumpRateOption(), Adaptation::Config::dumpService(), Adaptation::Config::DumpServiceGroups(), DumpServiceTimesStats(), Rock::SwapDir::dumpSizeOption(), fde::DumpStats(), fde::dumpStats(), Rock::SwapDir::dumpTimeOption(), externalAclStats(), fqdnStats(), fwdStats(), header_mangler_dump_access(), header_mangler_dump_replacement(), httpHdrCcStatDumper(), httpHdrScStatDumper(), httpHdrScTargetStatDumper(), httpHeaderFieldStatDumper(), httpHeaderFldsPerHdrDumper(), httpHeaderStatDump(), httpHeaderStoreReport(), idnsStats(), ipcacheStatPrint(), lru_stats(), netdbBinaryExchange(), netdbDump(), Mgr::OpenKidSection(), Fs::Ufs::UFSSwapDir::optionIODump(), Store::Disk::optionObjectSizeDump(), DiskdIOStrategy::optionQ1Dump(), DiskdIOStrategy::optionQ2Dump(), Store::Disk::optionReadOnlyDump(), peerDigestStatsReport(), peerSourceHashCachemgr(), peerUserHashCachemgr(), printRadixNode(), redirectStats(), refreshCountsStats(), refreshCountsStatsEntry(), refreshStats(), squidaio_stats(), Store::Disks::stat(), Store::Controller::stat(), Store::Disk::stat(), MemStore::stat(), Transients::stat(), stat_ipcache_get(), statClientRequests(), statCountersHistograms(), statDigestBlob(), Fs::Ufs::UFSSwapDir::statfs(), DiskdIOStrategy::statfs(), Rock::SwapDir::statfs(), statHistBinDumper(), statHistEnumDumper(), statHistIntDumper(), statHistSBufDumper(), statPeerSelect(), DelaySpec::stats(), DelayBucket::stats(), DelayTaggedBucket::stats(), DelayPools::Stats(), DelayTagged::stats(), Aggregate::stats(), VectorPool::stats(), ClassCBucket::stats(), ClassCHostPool::stats(), statUtilization(), storeCheckCachableStats(), storeDigestReport(), storeIdStats(), and storeLogTagsHist().
◆ storeAppendVPrintf()
void storeAppendVPrintf | ( | StoreEntry * | , |
const char * | , | ||
va_list | ap | ||
) |
Definition at line 865 of file store.cc.
References StoreEntry::vappendf().
◆ storeConfigure()
void storeConfigure | ( | void | ) |
Definition at line 1270 of file store.cc.
References Store::Controller::configure(), and Store::Root().
Referenced by configDoConfigure(), and storeSwapOutFileClosed().
◆ storeCreateEntry()
StoreEntry* storeCreateEntry | ( | const char * | , |
const char * | , | ||
const RequestFlags & | , | ||
const HttpRequestMethod & | |||
) |
Like storeCreatePureEntry(), but also locks the entry and sets entry key.
Definition at line 759 of file store.cc.
References RequestFlags::cachable, RequestFlags::hierarchical, StoreEntry::lock(), neighbors_do_private_keys, StoreEntry::setPrivateKey(), StoreEntry::setPublicKey(), and storeCreatePureEntry().
Referenced by StoreEntry::adjustVary(), asnCacheStart(), TestRock::createEntry(), clientReplyContext::createStoreEntry(), Mgr::Action::createStoreEntry(), ClientHttpRequest::doCallouts(), netdbExchangeStart(), peerCountMcastPeersCreateAndSend(), peerDigestRequest(), clientReplyContext::processExpired(), Ssl::ServerBump::ServerBump(), UrnState::start(), storeDigestRewriteStart(), and TestUfs::testUfsSearch().
◆ storeCreatePureEntry()
StoreEntry* storeCreatePureEntry | ( | const char * | storeId, |
const char * | logUrl, | ||
const HttpRequestMethod & | |||
) |
Creates a new StoreEntry with mem_obj and sets initial flags/states.
Definition at line 741 of file store.cc.
References StoreEntry::createMemObject(), debugs, EBIT_SET, ENTRY_VALIDATED, StoreEntry::flags, StoreEntry::lastref, PING_NONE, StoreEntry::ping_status, StoreEntry::refcount, squid_curtime, STORE_PENDING, StoreEntry::store_status, and StoreEntry::timestamp.
Referenced by MimeIcon::load(), and storeCreateEntry().
◆ storeEntryFlags()
const char* storeEntryFlags | ( | const StoreEntry * | ) |
Definition at line 253 of file stat.cc.
References DELAY_SENDING, EBIT_TEST, ENTRY_ABORTED, ENTRY_BAD_LENGTH, ENTRY_DISPATCHED, ENTRY_FWD_HDR_WAIT, ENTRY_NEGCACHED, ENTRY_REVALIDATE_ALWAYS, ENTRY_REVALIDATE_STALE, ENTRY_SPECIAL, ENTRY_VALIDATED, StoreEntry::flags, int, KEY_PRIVATE, LOCAL_ARRAY, REFRESH_REQUEST, and RELEASE_REQUEST.
Referenced by StoreEntry::dump(), and statStoreEntry().
◆ storeEntryInUse()
size_t storeEntryInUse | ( | ) |
◆ storeEntryReplaceObject()
void storeEntryReplaceObject | ( | StoreEntry * | , |
HttpReply * | |||
) |
◆ storeFsDone()
void storeFsDone | ( | void | ) |
◆ storeFsInit()
void storeFsInit | ( | void | ) |
◆ storeGetMemSpace()
void storeGetMemSpace | ( | int | size | ) |
Clear Memory storage to accommodate the given object len
Definition at line 1121 of file store.cc.
References Store::Controller::freeMemorySpace(), Store::Root(), and size.
Referenced by store_client::maybeWriteFromDiskToMemory(), and StoreEntry::write().
◆ storeGetPublic()
StoreEntry* storeGetPublic | ( | const char * | uri, |
const HttpRequestMethod & | method | ||
) |
Definition at line 504 of file store.cc.
References Store::Controller::find(), Store::Root(), and storeKeyPublic().
Referenced by StoreEntry::adjustVary(), asnCacheStart(), findPreviouslyCachedEntry(), TestRock::getEntry(), httpMaybeRemovePublic(), ICPState::isHit(), MimeIcon::load(), clientReplyContext::purgeDoPurge(), UrnState::start(), and urnParseReply().
◆ storeGetPublicByRequest()
StoreEntry* storeGetPublicByRequest | ( | HttpRequest * | request, |
const KeyScope | keyScope = ksDefault |
||
) |
Definition at line 516 of file store.cc.
References HttpRequest::method, Http::METHOD_GET, Http::METHOD_HEAD, and storeGetPublicByRequestMethod().
Referenced by htcpSpecifier::checkHit(), findPreviouslyCachedEntry(), htcpClrStore(), clientReplyContext::identifyStoreObject(), peerDigestRequest(), and clientReplyContext::processExpired().
◆ storeGetPublicByRequestMethod()
StoreEntry* storeGetPublicByRequestMethod | ( | HttpRequest * | request, |
const HttpRequestMethod & | method, | ||
const KeyScope | keyScope = ksDefault |
||
) |
Definition at line 510 of file store.cc.
References Store::Controller::find(), Store::Root(), and storeKeyPublicByRequestMethod().
Referenced by httpMaybeRemovePublic(), clientReplyContext::purgeDoPurge(), and storeGetPublicByRequest().
◆ storeHeapPositionUpdate()
void storeHeapPositionUpdate | ( | StoreEntry * | , |
SwapDir * | |||
) |
◆ storeInit()
void storeInit | ( | void | ) |
Definition at line 1257 of file store.cc.
References Config, createRemovalPolicy(), eventAdd(), Store::Controller::init(), mem_policy, SquidConfig::memPolicy, Store::Root(), storeDigestInit(), storeLateRelease, storeLogOpen(), storeRebuildStart(), and storeRegisterWithCacheManager().
Referenced by mainInitialize().
◆ storeReplAdd()
void storeReplAdd | ( | const char * | , |
REMOVALPOLICYCREATE * | |||
) |
Definition at line 1645 of file store.cc.
References _storerepl_entry::create, DBG_IMPORTANT, debugs, storerepl_list, _storerepl_entry::typestr, and xrealloc().
Referenced by TestUfs::commonInit().
◆ storeSwapFileNumberSet()
void storeSwapFileNumberSet | ( | StoreEntry * | e, |
sfileno | filn | ||
) |
◆ storeTooManyDiskFilesOpen()
int storeTooManyDiskFilesOpen | ( | void | ) |
Definition at line 889 of file store.cc.
References Config, SquidConfig::max_open_disk_fds, and store_open_disk_fd.
Referenced by StoreEntry::checkCachable(), store_client::startSwapin(), and StoreEntry::swapOut().
Variable Documentation
◆ destroyStoreEntry
FREE destroyStoreEntry |
One of the three methods to get rid of an unlocked StoreEntry object. This low-level method ignores lock()ing and release() promises. It never leaves the entry in the local store_table. TODO: Hide by moving its functionality into the StoreEntry destructor.
Referenced by MemStore::get(), and Store::Controller::handleIdleEntry().
◆ store_io_stats
StoreIoStats store_io_stats |
Definition at line 16 of file store_io.cc.
Referenced by Mgr::StoreIoAction::collect(), and storeCreate().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products