]>
Commit | Line | Data |
---|---|---|
fb548aaf | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 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" | |
c43405e7 | 15 | #include "http/forward.h" |
2745fea5 | 16 | #include "store/forward.h" |
fb548aaf | 17 | |
1a210de4 EB |
18 | typedef enum { |
19 | ksDefault = 0, | |
20 | ksRevalidation | |
21 | } KeyScope; | |
22 | ||
8a648e8d FC |
23 | cache_key *storeKeyDup(const cache_key *); |
24 | cache_key *storeKeyCopy(cache_key *, const cache_key *); | |
25 | void storeKeyFree(const cache_key *); | |
26 | const cache_key *storeKeyScan(const char *); | |
27 | const char *storeKeyText(const cache_key *); | |
1a210de4 EB |
28 | const cache_key *storeKeyPublic(const char *, const HttpRequestMethod&, const KeyScope keyScope = ksDefault); |
29 | const cache_key *storeKeyPublicByRequest(HttpRequest *, const KeyScope keyScope = ksDefault); | |
30 | const cache_key *storeKeyPublicByRequestMethod(HttpRequest *, const HttpRequestMethod&, const KeyScope keyScope = ksDefault); | |
0a132302 | 31 | const cache_key *storeKeyPrivate(); |
8a648e8d | 32 | int storeKeyHashBuckets(int); |
fb548aaf FC |
33 | |
34 | extern HASHHASH storeKeyHashHash; | |
35 | extern HASHCMP storeKeyHashCmp; | |
36 | ||
37 | #endif /* SQUID_STORE_KEY_MD5_H_ */ | |
f53969cc | 38 |