libdap++ Updated for version 3.8.2
|
#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 "util_mit.h"
#include "debug.h"
Go to the source code of this file.
Namespaces | |
namespace | libdap |
Defines | |
#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 |
#define | REMOVE(a) remove((a)) |
Functions | |
int | libdap::get_hash (const string &url) |
Variables | |
const int | CACHE_TABLE_SIZE = 1499 |
#define CACHE_EMPTY_ETAG "@cache@" |
Definition at line 76 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::cache_index_parse_line().
#define CACHE_INDEX ".index" |
Definition at line 75 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::HTTPCacheTable().
#define CACHE_META ".meta" |
Definition at line 74 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::remove_cache_entry().
#define DIR_SEPARATOR_CHAR '/' |
Definition at line 70 of file HTTPCacheTable.cc.
#define DIR_SEPARATOR_STR "/" |
Definition at line 71 of file HTTPCacheTable.cc.
#define LM_EXPIRATION | ( | t | ) | (min((MAX_LM_EXPIRATION), static_cast<int>((t) / 10))) |
Definition at line 84 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::calculate_time().
#define MAX_LM_EXPIRATION 48*3600 |
Definition at line 79 of file HTTPCacheTable.cc.
#define MKDIR | ( | a, | |
b | |||
) | mkdir((a), (b)) |
Definition at line 67 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::create_hash_directory().
#define MKSTEMP | ( | a | ) | mkstemp((a)) |
Definition at line 69 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::create_location().
#define NO_LM_EXPIRATION 24*3600 |
Definition at line 78 of file HTTPCacheTable.cc.
#define REMOVE | ( | a | ) | remove((a)) |
Definition at line 68 of file HTTPCacheTable.cc.
Referenced by libdap::HTTPCacheTable::cache_index_delete(), and libdap::HTTPCacheTable::remove_cache_entry().
const int CACHE_TABLE_SIZE = 1499 |
Definition at line 87 of file HTTPCacheTable.cc.
Referenced by 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().