aboutsummaryrefslogtreecommitdiff
path: root/zenutil/cache
Commit message (Collapse)AuthorAgeFilesLines
* Remove the backwards compatibility for the Zen CachePolicy changes no… (#49)mattpetersepic2022-02-081-11/+1
| | | Remove the backwards compatibility for the Zen CachePolicy changes now that there has been enough time for all internal users of the old protocol to update.
* Merging minor fixes to mainStefan Boberg2022-02-071-8/+24
|\
| * Changed some initializers to constinit to ensure compile time initializationStefan Boberg2022-02-041-8/+24
| | | | | | | | Also changed ConvertToUpstream to not use so many ternary operators to improve debuggability
* | Fixed signed/unsigned comparison compile errorMartin Ridgers2022-02-031-1/+1
|/
* CacheRecordPolicy: Fix inverted PolicyMask expression that caused parsing ↵Matt Peters2022-02-011-2/+2
| | | | ValuePolicies to fail.
* Cache policy support (#47)mattpetersepic2022-02-011-154/+172
| | | | | | | | Add HandleRpc methods for the remaining ICacheStore requests from unreal: PutCacheValues/GetCacheValues. We now have batched versions for PutCacheRecords,GetCacheRecords,PutCacheValues,GetCacheValues,GetCacheChunks. Add support for CachePolicy flags to all of these batched methods. * Add Batched PutCacheValues/GetCacheValues. Rename old GetCacheValues to GetCacheChunks. * HandleRpcGetCacheRecords: Receive a CacheRecordPolicy with each key, and skipdata on attachments we already have. * Changes to CachePolicy copied from Release-5.0 depot. Change serialization to use the key BasePolicy instead of DefaultValuePolicy. * GetChunks: Read CacheRecords from remote if necessary to find ContentId. Implement QueryLocal, StoreLocal, and SkipData.
* Implement SkipData,QueryLocal,StoreLocal for HandleRpcGetCacheRecords (#41)mattpetersepic2022-01-261-0/+20
| | | * Implement SkipData,QueryLocal,StoreLocal for HandleRpcGetCacheRecords.
* Unused Delimiter string_view wouldn't compile POISX platformsMartin Ridgers2022-01-251-1/+0
|
* Cachepolicy (#36)mattpetersepic2022-01-251-107/+177
| | | | | | | | | | | | | | | | | * Copy CachePolicy implementation from UE5/Release-5.0. Add backwards compatability for clients and upstreams that are using the old protocol. * Add RefPtr templated move operator and constructor, so that RefPtr<const Foo*> A = std::move(RefPtr<Foo*>()) will do a move. * Fix broken CachePolicy tests and add tests for new Save/Load. * Remove TODO comments * CachePolicy Save/Load Fixes from codereview * Fix comment to match code change. * Remove backwards compatibility for CachePolicy change. Convert policy string tokens to PascalCase. Fix tests for new policy text. Change ParseCachePolicy to assert string is non-empty and always succeed. * Fix release build: use ZEN_WITH_TESTS define
* Fixed CacheRecordPolicy::SaveDevin Doucette2022-01-201-0/+2
|
* Fixed bug when cloning CbObject.Per Larsson2021-11-121-0/+6
|
* Movec cache utility types to zenutil and fixed unit tests.Per Larsson2021-11-122-0/+170