comparison Core/Cache/MemoryCache.h @ 505:f59e4518fd57

rename CacheIndex as LeastRecentlyUsedIndex
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Aug 2013 10:17:45 +0200
parents bdd72233b105
children 2d0a347e8cfc
comparison
equal deleted inserted replaced
503:273e7ad98ea9 505:f59e4518fd57
31 31
32 32
33 #pragma once 33 #pragma once
34 34
35 #include <memory> 35 #include <memory>
36 #include "CacheIndex.h" 36 #include "LeastRecentlyUsedIndex.h"
37 #include "ICachePageProvider.h" 37 #include "ICachePageProvider.h"
38 38
39 namespace Orthanc 39 namespace Orthanc
40 { 40 {
41 /** 41 /**
50 std::auto_ptr<IDynamicObject> content_; 50 std::auto_ptr<IDynamicObject> content_;
51 }; 51 };
52 52
53 ICachePageProvider& provider_; 53 ICachePageProvider& provider_;
54 size_t cacheSize_; 54 size_t cacheSize_;
55 CacheIndex<std::string, Page*> index_; 55 LeastRecentlyUsedIndex<std::string, Page*> index_;
56 56
57 Page& Load(const std::string& id); 57 Page& Load(const std::string& id);
58 58
59 public: 59 public:
60 MemoryCache(ICachePageProvider& provider, 60 MemoryCache(ICachePageProvider& provider,