]>
Commit | Line | Data |
---|---|---|
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 | |
17 | class HttpRequestMethod; | |
18 | class HttpRequest; | |
19 | ||
1a210de4 EB |
20 | typedef enum { |
21 | ksDefault = 0, | |
22 | ksRevalidation | |
23 | } KeyScope; | |
24 | ||
8a648e8d FC |
25 | cache_key *storeKeyDup(const cache_key *); |
26 | cache_key *storeKeyCopy(cache_key *, const cache_key *); | |
27 | void storeKeyFree(const cache_key *); | |
28 | const cache_key *storeKeyScan(const char *); | |
29 | const char *storeKeyText(const cache_key *); | |
1a210de4 EB |
30 | const cache_key *storeKeyPublic(const char *, const HttpRequestMethod&, const KeyScope keyScope = ksDefault); |
31 | const cache_key *storeKeyPublicByRequest(HttpRequest *, const KeyScope keyScope = ksDefault); | |
32 | const cache_key *storeKeyPublicByRequestMethod(HttpRequest *, const HttpRequestMethod&, const KeyScope keyScope = ksDefault); | |
0a132302 | 33 | const cache_key *storeKeyPrivate(); |
8a648e8d FC |
34 | int storeKeyHashBuckets(int); |
35 | int storeKeyNull(const cache_key *); | |
36 | void storeKeyInit(void); | |
fb548aaf FC |
37 | |
38 | extern HASHHASH storeKeyHashHash; | |
39 | extern HASHCMP storeKeyHashCmp; | |
40 | ||
41 | #endif /* SQUID_STORE_KEY_MD5_H_ */ | |
f53969cc | 42 |