comparison OrthancFramework/Sources/Cache/MemoryStringCache.h @ 4279:ab4d015af660

moving inline methods to source files for ABI compatibility
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Nov 2020 20:48:01 +0100
parents bf7b9edf6b81
children d9473bd5ed43
comparison
equal deleted inserted replaced
4278:9279de56a405 4279:ab4d015af660
36 class StringValue; 36 class StringValue;
37 37
38 MemoryObjectCache cache_; 38 MemoryObjectCache cache_;
39 39
40 public: 40 public:
41 size_t GetMaximumSize() 41 size_t GetMaximumSize();
42 {
43 return cache_.GetMaximumSize();
44 }
45 42
46 void SetMaximumSize(size_t size) 43 void SetMaximumSize(size_t size);
47 {
48 cache_.SetMaximumSize(size);
49 }
50 44
51 void Add(const std::string& key, 45 void Add(const std::string& key,
52 const std::string& value); 46 const std::string& value);
53 47
54 void Invalidate(const std::string& key) 48 void Invalidate(const std::string& key);
55 {
56 cache_.Invalidate(key);
57 }
58 49
59 bool Fetch(std::string& value, 50 bool Fetch(std::string& value,
60 const std::string& key); 51 const std::string& key);
61 }; 52 };
62 } 53 }