Mercurial > hg > orthanc-webviewer
comparison Plugin/Cache/CacheManager.h @ 115:c8ca47a67bf3
automatic clearing of the cache
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Dec 2015 17:08:51 +0100 |
parents | a6492d20b2a8 |
children | 3809121c3290 |
comparison
equal
deleted
inserted
replaced
114:628697fdfcbd | 115:c8ca47a67bf3 |
---|---|
23 #include "../../Orthanc/Core/SQLite/Connection.h" | 23 #include "../../Orthanc/Core/SQLite/Connection.h" |
24 #include "../../Orthanc/Core/FileStorage/FilesystemStorage.h" | 24 #include "../../Orthanc/Core/FileStorage/FilesystemStorage.h" |
25 | 25 |
26 namespace OrthancPlugins | 26 namespace OrthancPlugins |
27 { | 27 { |
28 enum CacheProperty | |
29 { | |
30 CacheProperty_OrthancVersion, | |
31 CacheProperty_WebViewerVersion | |
32 }; | |
33 | |
34 | |
28 class CacheManager : public boost::noncopyable | 35 class CacheManager : public boost::noncopyable |
29 { | 36 { |
30 private: | 37 private: |
31 struct PImpl; | 38 struct PImpl; |
32 boost::shared_ptr<PImpl> pimpl_; | 39 boost::shared_ptr<PImpl> pimpl_; |
90 | 97 |
91 void Store(int bundle, | 98 void Store(int bundle, |
92 const std::string& item, | 99 const std::string& item, |
93 const std::string& content); | 100 const std::string& content); |
94 | 101 |
102 void SetProperty(CacheProperty property, | |
103 const std::string& value); | |
104 | |
105 bool LookupProperty(std::string& target, | |
106 CacheProperty property); | |
95 }; | 107 }; |
96 } | 108 } |