A brief file description. More...
#include "libts.h"
#include "I_EventSystem.h"
#include "I_AIO.h"
#include "I_CacheDefs.h"
#include "I_Store.h"
Go to the source code of this file.
Data Structures | |
struct | CacheProcessor |
struct | CacheVConnection |
Defines | |
#define | CACHE_MODULE_MAJOR_VERSION 1 |
#define | CACHE_MODULE_MINOR_VERSION 0 |
#define | CACHE_MODULE_VERSION |
#define | CACHE_WRITE_OPT_OVERWRITE 0x0001 |
#define | CACHE_WRITE_OPT_CLOSE_COMPLETE 0x0002 |
#define | CACHE_WRITE_OPT_SYNC (CACHE_WRITE_OPT_CLOSE_COMPLETE | 0x0004) |
#define | CACHE_WRITE_OPT_OVERWRITE_SYNC (CACHE_WRITE_OPT_SYNC | CACHE_WRITE_OPT_OVERWRITE) |
#define | SCAN_KB_PER_SECOND 8192 |
#define | RAM_CACHE_ALGORITHM_CLFUS 0 |
#define | RAM_CACHE_ALGORITHM_LRU 1 |
#define | CACHE_COMPRESSION_NONE 0 |
#define | CACHE_COMPRESSION_FASTLZ 1 |
#define | CACHE_COMPRESSION_LIBZ 2 |
#define | CACHE_COMPRESSION_LIBLZMA 3 |
Functions | |
void | ink_cache_init (ModuleVersion version) |
Variables | |
inkcoreapi CacheProcessor | cacheProcessor |
Continuation * | cacheRegexDeleteCont |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file I_Cache.h.
#define CACHE_COMPRESSION_FASTLZ 1 |
Definition at line 50 of file I_Cache.h.
Referenced by CacheProcessor::cacheInitialized(), RamCacheCLFUS::compress_entries(), RamCacheCLFUS::get(), and RamCacheCLFUSCompressor::mainEvent().
#define CACHE_COMPRESSION_LIBLZMA 3 |
Definition at line 52 of file I_Cache.h.
Referenced by CacheProcessor::cacheInitialized(), RamCacheCLFUS::compress_entries(), RamCacheCLFUS::get(), and RamCacheCLFUSCompressor::mainEvent().
#define CACHE_COMPRESSION_LIBZ 2 |
Definition at line 51 of file I_Cache.h.
Referenced by CacheProcessor::cacheInitialized(), RamCacheCLFUS::compress_entries(), RamCacheCLFUS::get(), and RamCacheCLFUSCompressor::mainEvent().
#define CACHE_COMPRESSION_NONE 0 |
Definition at line 49 of file I_Cache.h.
Referenced by CacheProcessor::cacheInitialized(), and RamCacheCLFUSCompressor::mainEvent().
#define CACHE_MODULE_VERSION |
Definition at line 35 of file I_Cache.h.
Referenced by ink_cache_init().
#define CACHE_WRITE_OPT_OVERWRITE 0x0001 |
Definition at line 39 of file I_Cache.h.
Referenced by Cluster_write().
#define CACHE_WRITE_OPT_OVERWRITE_SYNC (CACHE_WRITE_OPT_SYNC | CACHE_WRITE_OPT_OVERWRITE) |
#define CACHE_WRITE_OPT_SYNC (CACHE_WRITE_OPT_CLOSE_COMPLETE | 0x0004) |
Definition at line 41 of file I_Cache.h.
Referenced by cache(), and Cache::open_write().
#define RAM_CACHE_ALGORITHM_CLFUS 0 |
Definition at line 46 of file I_Cache.h.
Referenced by CacheProcessor::cacheInitialized().
#define RAM_CACHE_ALGORITHM_LRU 1 |
Definition at line 47 of file I_Cache.h.
Referenced by CacheProcessor::cacheInitialized().
void ink_cache_init | ( | ModuleVersion | version | ) |
Definition at line 3478 of file Cache.cc.
References cache_config_agg_write_backlog, cache_config_alt_rewrite_max_size, cache_config_compatibility_4_2_0_fixup, cache_config_dir_sync_frequency, cache_config_enable_checksum, cache_config_force_sector_size, cache_config_hit_evacuate_percent, cache_config_hit_evacuate_size_limit, cache_config_http_max_alts, cache_config_max_disk_errors, cache_config_max_doc_size, cache_config_mutex_retry_delay, cache_config_permit_pinning, cache_config_ram_cache_algorithm, cache_config_ram_cache_compress, cache_config_ram_cache_compress_percent, cache_config_ram_cache_cutoff, cache_config_ram_cache_size, cache_config_ram_cache_use_seen_filter, cache_config_read_while_writer, cache_config_select_alternate, cache_config_target_fragment_size, cache_config_vary_on_user_agent, CACHE_MODULE_VERSION, cache_stat_count, checkModuleVersion(), Debug, ink_release_assert, Store::n_disks, Store::read_config(), REC_EstablishStaticConfigInt32, REC_EstablishStaticConfigInteger, REC_RegisterConfigUpdateFunc, RecAllocateRawStatBlock(), RecConfigReadConfigPath(), register_cache_stats(), update_cache_config(), validate_rww(), and Warning.
Referenced by main().
inkcoreapi CacheProcessor cacheProcessor |
Definition at line 111 of file Cache.cc.
Referenced by cache(), TestProxy::cacheCheckEvent(), CB_After_Cache_Init(), CmdCacheCont::CheckEvent(), CmdCacheCont::ClearEvent(), cmd_check_internal(), cmd_clear(), ShowCache::delete_regex(), ShowCache::delete_url(), TestProxy::dnsEvent(), HttpSM::do_cache_delete_all_alts(), PrefetchBlaster::handleEvent(), ICPPeerReadCont::ICPPeerQueryCont(), ShowCache::invalidate_regex(), ShowCache::lookup_regex(), ShowCache::lookup_url(), main(), RegressionCont::mainEvent(), mgmt_storage_device_cmd_callback(), HttpCacheSM::open_write(), CacheDisk::openDone(), CacheVC::scanObject(), ClusterProcessor::start(), TSCacheDataTypeReady(), TSCacheRead(), TSCacheRemove(), TSCacheScan(), and TSCacheWrite().