Skip to content

A SIEVE cache implementation for C++

License

Notifications You must be signed in to change notification settings

kassane/sieve-cache-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sieve Cache in C++ (header only)

A SIEVE cache implementation for C++. Based on D implementation.

How to Use

or

  • Add in your CMakeLists.txt
include(FetchContent)
FetchContent_Declare(
    sieve
    GIT_REPOSITORY "https://github.com/kassane/sieve-cache-cpp.git"
    GIT_TAG main
)
set(BUILD_BENCH OFF)
set(BUILD_TESTS OFF)
FetchContent_GetProperties(sieve)
if(NOT sieve_POPULATED)
    FetchContent_Populate(sieve)
endif()
set(SIEVE_PATH "${sieve_SOURCE_DIR}/include")

add_executable(${PROJECT_NAME} "demo.cc")
target_include_directories(${PROJECT_NAME} PRIVATE ${SIEVE_PATH})
$ cmake -B build
$ cmake --build build
# Run benchmark sample (if enabled)
$ cmake --build build --target bench
# Run unittest  (if enabled)
$ cmake --build build --target unittest

LICENSE

See: LICENSE