Mercurial > hg > orthanc-authorization
comparison Plugin/ResourceHierarchyCache.cpp @ 110:aa56dcf599b9
fix unit tests
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 22 Aug 2023 17:50:01 +0200 |
parents | 7381a7674b36 |
children | 9be1ee2b8fe1 |
comparison
equal
deleted
inserted
replaced
109:7381a7674b36 | 110:aa56dcf599b9 |
---|---|
248 const std::string& childOrthancId, | 248 const std::string& childOrthancId, |
249 const std::string& parentOrthancId) | 249 const std::string& parentOrthancId) |
250 { | 250 { |
251 cache_->Store(ComputeKey(childLevel, childOrthancId), parentOrthancId, 0 /* no expiration */); | 251 cache_->Store(ComputeKey(childLevel, childOrthancId), parentOrthancId, 0 /* no expiration */); |
252 } | 252 } |
253 | |
254 void ResourceHierarchyCache::AddLabels(Orthanc::ResourceType level, | |
255 const std::string& orthancId, | |
256 const std::string& serializedLabels) | |
257 { | |
258 labels_->Store(ComputeKey(level, orthancId), serializedLabels, 0 /* no expiration */); | |
259 } | |
260 | |
253 #endif | 261 #endif |
254 | 262 |
255 } | 263 } |