aboutsummaryrefslogtreecommitdiff
path: root/zenutil/include
diff options
context:
space:
mode:
authormattpetersepic <[email protected]>2022-01-26 18:45:04 -0700
committerGitHub <[email protected]>2022-01-26 18:45:04 -0700
commit09f2ac4d9aaea0107af8fbd6a41c2d3fe3e450ba (patch)
tree41bc55af44f16fafa674c7e8c21d56fec7c79d53 /zenutil/include
parentImplement SkipData,QueryLocal,StoreLocal for GET-verb CacheGet requests (#39) (diff)
downloadzen-09f2ac4d9aaea0107af8fbd6a41c2d3fe3e450ba.tar.xz
zen-09f2ac4d9aaea0107af8fbd6a41c2d3fe3e450ba.zip
Implement SkipData,QueryLocal,StoreLocal for HandleRpcGetCacheRecords (#41)
* Implement SkipData,QueryLocal,StoreLocal for HandleRpcGetCacheRecords.
Diffstat (limited to 'zenutil/include')
-rw-r--r--zenutil/include/zenutil/cache/cachepolicy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/zenutil/include/zenutil/cache/cachepolicy.h b/zenutil/include/zenutil/cache/cachepolicy.h
index f967f707b..b3602edbd 100644
--- a/zenutil/include/zenutil/cache/cachepolicy.h
+++ b/zenutil/include/zenutil/cache/cachepolicy.h
@@ -144,6 +144,10 @@ public:
*/
static CacheRecordPolicy Load(CbObjectView Object, CachePolicy DefaultPolicy = CachePolicy::Default);
+ /** Return *this converted into the equivalent policy that the upstream should use when forwarding a put or get to an upstream server.
+ */
+ CacheRecordPolicy ConvertToUpstream() const;
+
private:
friend class CacheRecordPolicyBuilder;