|
19 | 19 | #include "cachelib/allocator/MM2Q.h" |
20 | 20 | #include "cachelib/allocator/MMLru.h" |
21 | 21 | #include "cachelib/allocator/MMS3FIFO.h" |
| 22 | +#include "cachelib/allocator/MMS4FIFO.h" |
22 | 23 | #include "cachelib/allocator/MMTinyLFU.h" |
23 | 24 | #include "cachelib/allocator/MMWTinyLFU.h" |
24 | 25 | #include "cachelib/allocator/memory/CompressedPtr.h" |
@@ -62,6 +63,13 @@ struct S3FIFOCacheTrait { |
62 | 63 | using CompressedPtrType = CompressedPtr4B; |
63 | 64 | }; |
64 | 65 |
|
| 66 | +struct S4FIFOCacheTrait { |
| 67 | + using MMType = MMS4FIFO; |
| 68 | + using AccessType = ChainedHashTable; |
| 69 | + using AccessTypeLocks = SharedMutexBuckets; |
| 70 | + using CompressedPtrType = CompressedPtr4B; |
| 71 | +}; |
| 72 | + |
65 | 73 | struct TinyLFUCacheTrait { |
66 | 74 | using MMType = MMTinyLFU; |
67 | 75 | using AccessType = ChainedHashTable; |
@@ -104,6 +112,13 @@ struct S3FIFO5BCacheTrait { |
104 | 112 | using CompressedPtrType = CompressedPtr5B; |
105 | 113 | }; |
106 | 114 |
|
| 115 | +struct S4FIFO5BCacheTrait { |
| 116 | + using MMType = MMS4FIFO; |
| 117 | + using AccessType = ChainedHashTable; |
| 118 | + using AccessTypeLocks = SharedMutexBuckets; |
| 119 | + using CompressedPtrType = CompressedPtr5B; |
| 120 | +}; |
| 121 | + |
107 | 122 | struct TinyLFU5BCacheTrait { |
108 | 123 | using MMType = MMTinyLFU; |
109 | 124 | using AccessType = ChainedHashTable; |
|
0 commit comments