]> git.ipfire.org Git - thirdparty/squid.git/blame - src/store_key_md5.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / store_key_md5.h
CommitLineData
fb548aaf 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
fb548aaf 3 *
bbc27441
AJ
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
fb548aaf
FC
7 */
8
bbc27441
AJ
9/* DEBUG: section 20 Storage Manager MD5 Cache Keys */
10
fb548aaf
FC
11#ifndef SQUID_STORE_KEY_MD5_H_
12#define SQUID_STORE_KEY_MD5_H_
13
14#include "hash.h"
2745fea5 15#include "store/forward.h"
fb548aaf
FC
16
17class HttpRequestMethod;
18class HttpRequest;
19
1a210de4
EB
20typedef enum {
21 ksDefault = 0,
22 ksRevalidation
23} KeyScope;
24
8a648e8d
FC
25cache_key *storeKeyDup(const cache_key *);
26cache_key *storeKeyCopy(cache_key *, const cache_key *);
27void storeKeyFree(const cache_key *);
28const cache_key *storeKeyScan(const char *);
29const char *storeKeyText(const cache_key *);
1a210de4
EB
30const cache_key *storeKeyPublic(const char *, const HttpRequestMethod&, const KeyScope keyScope = ksDefault);
31const cache_key *storeKeyPublicByRequest(HttpRequest *, const KeyScope keyScope = ksDefault);
32const cache_key *storeKeyPublicByRequestMethod(HttpRequest *, const HttpRequestMethod&, const KeyScope keyScope = ksDefault);
0a132302 33const cache_key *storeKeyPrivate();
8a648e8d
FC
34int storeKeyHashBuckets(int);
35int storeKeyNull(const cache_key *);
36void storeKeyInit(void);
fb548aaf
FC
37
38extern HASHHASH storeKeyHashHash;
39extern HASHCMP storeKeyHashCmp;
40
41#endif /* SQUID_STORE_KEY_MD5_H_ */
f53969cc 42