1 #ifndef CACHEMERE_PRESETS_H
2 #define CACHEMERE_PRESETS_H
4 #include <absl/hash/hash.h>
7 #include "measurement.h"
9 #include "policy/bind.h"
10 #include "policy/constraint_count.h"
11 #include "policy/constraint_memory.h"
12 #include "policy/eviction_lru.h"
13 #include "policy/eviction_segmented_lru.h"
14 #include "policy/eviction_gdsf.h"
15 #include "policy/insertion_always.h"
16 #include "policy/insertion_tinylfu.h"
24 template<
typename Key,
26 template<
class,
class,
class>
27 class InsertionPolicy,
28 template<
class,
class,
class>
32 typename KeyHash = absl::Hash<Key>,
33 bool ThreadSafe =
true>
44 template<
typename Key,
48 typename KeyHash = absl::Hash<Key>,
49 bool ThreadSafe =
true>
61 template<
typename Key,
65 typename KeyHash = absl::Hash<Key>,
66 bool ThreadSafe =
true>
78 template<
typename Key,
83 typename KeyHash = absl::Hash<Key>,
84 bool ThreadSafe =
true>
99 template<
typename Key,
101 template<
class,
class,
class>
102 class InsertionPolicy,
103 template<
class,
class,
class>
104 class EvictionPolicy,
107 typename KeyHash = absl::Hash<Key>,
108 bool ThreadSafe =
true>
119 template<
typename Key,
123 typename KeyHash = absl::Hash<Key>,
124 bool ThreadSafe =
true>
136 template<
typename Key,
140 typename KeyHash = absl::Hash<Key>,
141 bool ThreadSafe =
true>
153 template<
typename Key,
158 typename KeyHash = absl::Hash<Key>,
159 bool ThreadSafe =
true>