Skip to content

Commit 35a8be2

Browse files
committed
Use C++ 17
1 parent cfaa139 commit 35a8be2

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ else()
9393
add_compile_definitions(LOGLEVEL=7)
9494
endif()
9595

96+
set(CMAKE_CXX_STANDARD 17)
97+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
98+
9699
# Find python and pybind11
97100
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
98101
find_package(pybind11 CONFIG REQUIRED)

docs/src/en/plugin.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Plugin System
2+
3+
We enable user add any customized cache via libCacheSim's plugin system.
4+
5+
With user-defined sive python hook functions,
6+
7+
```c++
8+
py::function cache_init_hook;
9+
py::function cache_hit_hook;
10+
py::function cache_miss_hook;
11+
py::function cache_eviction_hook;
12+
py::function cache_remove_hook;
13+
py::function cache_free_hook;
14+
```
15+
16+
We can simulate and determine the cache eviction behavior from the python side.

0 commit comments

Comments
 (0)