diff options
| author | mattpetersepic <[email protected]> | 2022-01-26 18:45:04 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-26 18:45:04 -0700 |
| commit | 09f2ac4d9aaea0107af8fbd6a41c2d3fe3e450ba (patch) | |
| tree | 41bc55af44f16fafa674c7e8c21d56fec7c79d53 /zenutil/include | |
| parent | Implement SkipData,QueryLocal,StoreLocal for GET-verb CacheGet requests (#39) (diff) | |
| download | zen-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.h | 4 |
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; |