comparison OrthancFramework/Sources/FileStorage/StorageCache.h @ 4906:f656fb878b50

reintroduced storage cache for StartRange files
author Alain Mazy <am@osimis.io>
date Mon, 21 Feb 2022 10:11:38 +0100
parents ea5f1c6ed07e
children 0ea402b4d901
comparison
equal deleted inserted replaced
4902:df86d2505df8 4906:f656fb878b50
45 45
46 void Add(const std::string& uuid, 46 void Add(const std::string& uuid,
47 FileContentType contentType, 47 FileContentType contentType,
48 const std::string& value); 48 const std::string& value);
49 49
50 void AddStartRange(const std::string& uuid,
51 FileContentType contentType,
52 const std::string& value);
53
50 void Add(const std::string& uuid, 54 void Add(const std::string& uuid,
51 FileContentType contentType, 55 FileContentType contentType,
52 const void* buffer, 56 const void* buffer,
53 size_t size); 57 size_t size);
54 58
57 61
58 bool Fetch(std::string& value, 62 bool Fetch(std::string& value,
59 const std::string& uuid, 63 const std::string& uuid,
60 FileContentType contentType); 64 FileContentType contentType);
61 65
66 bool FetchStartRange(std::string& value,
67 const std::string& uuid,
68 FileContentType contentType,
69 uint64_t end /* exclusive */);
70
62 }; 71 };
63 } 72 }