|
libdap++
Updated for version 3.13.1
|
#include "config.h"#include <pthread.h>#include <limits.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <cstring>#include <iostream>#include <sstream>#include <algorithm>#include <iterator>#include <set>#include "Error.h"#include "InternalErr.h"#include "ResponseTooBigErr.h"#include "SignalHandler.h"#include "HTTPCacheInterruptHandler.h"#include "HTTPCacheTable.h"#include "HTTPCacheMacros.h"#include "util_mit.h"#include "debug.h"
Go to the source code of this file.
Namespaces | |
| libdap | |
Macros | |
| #define | CACHE_EMPTY_ETAG "@cache@" |
| #define | CACHE_INDEX ".index" |
| #define | CACHE_META ".meta" |
| #define | DIR_SEPARATOR_CHAR '/' |
| #define | DIR_SEPARATOR_STR "/" |
| #define | LM_EXPIRATION(t) (min((MAX_LM_EXPIRATION), static_cast<int>((t) / 10))) |
| #define | MAX_LM_EXPIRATION 48*3600 |
| #define | MKDIR(a, b) mkdir((a), (b)) |
| #define | MKSTEMP(a) mkstemp((a)) |
| #define | NO_LM_EXPIRATION 24*3600 |
Functions | |
| int | libdap::get_hash (const string &url) |
Variables | |
| const int | CACHE_TABLE_SIZE = 1499 |
| #define CACHE_EMPTY_ETAG "@cache@" |
Definition at line 80 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::cache_index_parse_line().
| #define CACHE_INDEX ".index" |
Definition at line 79 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::HTTPCacheTable().
| #define CACHE_META ".meta" |
Definition at line 78 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::remove_cache_entry().
| #define DIR_SEPARATOR_CHAR '/' |
Definition at line 74 of file HTTPCacheTable.cc.
| #define DIR_SEPARATOR_STR "/" |
Definition at line 75 of file HTTPCacheTable.cc.
| #define LM_EXPIRATION | ( | t | ) | (min((MAX_LM_EXPIRATION), static_cast<int>((t) / 10))) |
Definition at line 88 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::calculate_time().
| #define MAX_LM_EXPIRATION 48*3600 |
Definition at line 83 of file HTTPCacheTable.cc.
| #define MKDIR | ( | a, | |
| b | |||
| ) | mkdir((a), (b)) |
Definition at line 72 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::create_hash_directory().
| #define MKSTEMP | ( | a | ) | mkstemp((a)) |
Definition at line 73 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::create_location().
| #define NO_LM_EXPIRATION 24*3600 |
Definition at line 82 of file HTTPCacheTable.cc.
| const int CACHE_TABLE_SIZE = 1499 |
Definition at line 91 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::add_entry_to_cache_table(), libdap::HTTPCacheTable::cache_index_write(), libdap::HTTPCacheTable::delete_all_entries(), libdap::HTTPCacheTable::delete_by_hits(), libdap::HTTPCacheTable::delete_by_size(), libdap::HTTPCacheTable::delete_expired_entries(), libdap::get_hash(), libdap::HTTPCacheTable::HTTPCacheTable(), and libdap::HTTPCacheTable::~HTTPCacheTable().