]> git.ipfire.org Git - thirdparty/squid.git/blob - src/store_key_md5.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / store_key_md5.h
1 /*
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9 /* DEBUG: section 20 Storage Manager MD5 Cache Keys */
10
11 #ifndef SQUID_STORE_KEY_MD5_H_
12 #define SQUID_STORE_KEY_MD5_H_
13
14 #include "hash.h"
15 #include "store/forward.h"
16
17 class HttpRequestMethod;
18 class HttpRequest;
19
20 typedef enum {
21 ksDefault = 0,
22 ksRevalidation
23 } KeyScope;
24
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 *);
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);
33 const cache_key *storeKeyPrivate();
34 int storeKeyHashBuckets(int);
35 int storeKeyNull(const cache_key *);
36 void storeKeyInit(void);
37
38 extern HASHHASH storeKeyHashHash;
39 extern HASHCMP storeKeyHashCmp;
40
41 #endif /* SQUID_STORE_KEY_MD5_H_ */
42