diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-08-26 17:37:06 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-08-26 17:37:06 +0000 |
commit | 472e9cedcc7fe90161fae20bdfe1ac211d21ca58 (patch) | |
tree | 3b1b7bb9782b7c7876aabda87aadfe21f70159d7 /searchlib | |
parent | 8602ee0264b000359f4f4579a58a1caec38326b8 (diff) |
typedef -> using
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/docstore/documentstore.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/documentstore.h b/searchlib/src/vespa/searchlib/docstore/documentstore.h index 720c40f989e..d337f404f37 100644 --- a/searchlib/src/vespa/searchlib/docstore/documentstore.h +++ b/searchlib/src/vespa/searchlib/docstore/documentstore.h @@ -232,19 +232,18 @@ private: const document::CompressionConfig _compression; }; bool useCache() const { return (_cache->capacityBytes() != 0) && (_cache->capacity() != 0); } - typedef vespalib::CacheParam< vespalib::LruParam<DocumentIdT, Value>, - BackingStore, - vespalib::zero<DocumentIdT>, - vespalib::size<Value> > CacheParams; - typedef vespalib::cache<CacheParams> Cache; - using VisitCache=docstore::VisitCache; + using CacheParams = vespalib::CacheParam< vespalib::LruParam<DocumentIdT, Value>, + BackingStore, + vespalib::zero<DocumentIdT>, + vespalib::size<Value> >; + using Cache = vespalib::cache<CacheParams>; + using VisitCache = docstore::VisitCache; Config _config; IDataStore & _backingStore; BackingStore _store; std::shared_ptr<Cache> _cache; std::shared_ptr<VisitCache> _visitCache; - mutable volatile uint64_t _uncached_lookups; }; } // namespace search |