aboutsummaryrefslogtreecommitdiff
path: root/zenutil/cache
Commit message (Collapse)AuthorAgeFilesLines
* moved source directories into `/src` (#264)Stefan Boberg2023-05-024-2144/+0
| | | | | | * moved source directories into `/src` * updated bundle.lua for new `src` path * moved some docs, icon * removed old test trees
* send payloads as duplicated handles (#240)Dan Engelbrecht2023-03-141-3/+33
| | | | | | | | | * send payloads as duplicated handles if requestor provides process id and allows local file references. * linux/macos fixes * tests * fix access rights when duplicating handle * fix closing of duplicated handles on error * cleanup * changelog
* Enhanced rpc request recording (#229)Dan Engelbrecht2023-02-171-0/+210
| | | | | | | | | | | | | * rpc replay zen command * fix replay sessions for thread * recording start/stop as zen commands * move rpcrecording code to zenutil to remove code duplication * simplify recording http request threading * added more data logging to rpc replay * NotFound is an acceptable response for an rpc request * fix rpc replay command line parsing * rpc replay stats * Allow spawning of sub-process workers when replaying rpc recording * changelog
* Changed so CompressedBuffer::DecodeRawHash returns IoHash just like on the ↵Stefan Boberg2022-12-121-29/+27
| | | | | | UE side (#208) removed all use of IoHash::FromBLAKE3() caused by interactions with CompressedBuffer APIs
* optimizations (#200)Dan Engelbrecht2022-12-071-39/+38
| | | | | | | | | | | | | * Use direct file read and direct buffer allocation for small IoBuffer materalization * Reduce range of materialized data in CompositeBuffer reading CompressedBuffer header reading often only need a small part and not the whole file * reduce lock contention in IoBuffer::Materialize * Reduce parsing of compressed headers Validate header type at decompression * faster CreateDirectories - start from leaf going up and recurse back * optimized BufferHeader::IsValid * Add ValidateCompressedHeader to use when we don't need the actual compressed data Validate that we always get compressed data in CidStore::AddChunk * changelog
* Add `import-project` and `export-project` (#183)Dan Engelbrecht2022-11-181-7/+10
| | | * Add `import-project` and `export-project` command line parsing
* Add "Accept" field in RPC request to gracefully handle requests from older ↵Dan Engelbrecht2022-10-131-0/+27
| | | | instances (#180)
* Remove PutCacheRecordRequest::RecordBody and GetCacheRecordResult:RecordBody ↵Dan Engelbrecht2022-07-011-48/+50
| | | | (#140)
* Add ability to control where in the result array results go in ↵Dan Engelbrecht2022-06-301-12/+53
| | | | GetCacheRecordsResult::Parse and CacheValuesResult::Parse (#138)
* add optional filter when writing GetCacheRecordsRequest and ↵Dan Engelbrecht2022-06-291-16/+64
| | | | GetCacheValuesRequest (#137)
* cache requests API (#134)Dan Engelbrecht2022-06-271-0/+1495
|
* 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