https://github.com/fermi-ad/redis-adapter

C++ adapter which wraps redis++ to communicate to the instrumentation Redis database

https://github.com/fermi-ad/redis-adapter

Science Score: 34.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
    Organization fermi-ad has institutional domain (ad.fnal.gov)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.2%) to scientific vocabulary

Keywords

cmake cpp redis redis-client
Last synced: 4 months ago · JSON representation

Repository

C++ adapter which wraps redis++ to communicate to the instrumentation Redis database

Basic Info
  • Host: GitHub
  • Owner: fermi-ad
  • License: other
  • Language: C++
  • Default Branch: main
  • Homepage:
  • Size: 6.96 MB
Statistics
  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • Open Issues: 4
  • Releases: 0
Topics
cmake cpp redis redis-client
Created over 1 year ago · Last pushed 6 months ago
Metadata Files
Readme License

README.md

RedisAdapter

C++ adapter which wraps redis++ to communicate to the instrumentation Redis database

Build Instructions CMake

To build RedisAdapter as a standalone library, including tests and benchmarking (cmake required) 1. From the root directory:

`cmake -S . -B build -D REDIS_ADAPTER_TEST=1 -D REDIS_ADAPTER_BENCHMARK=1 && cmake --build build`
  1. Start Redis using the redis-start.sh script

    ./redis-start.sh

  2. Run the test executable in the build directory

    ./build/redis-adapter-test

  3. Run the benchmark executable in the build directory.

    ./build/redis-adapter-benchmark [host]

To integrate RedisAdapter into your CMake project: 1. Add the RedisAdapter repository to your project's directory structure. 2. Include the RedisAdapter project using:

`add_subdirectory(RedisAdapter)`
  1. Add ${REDIS_ADAPTER_SOURCES} to your list of sources to build. One way to do that is to add ${REDIS_ADAPTER_SOURCES} where you create your executable target:

    add_executable(RedisAdapterTest main.cpp ${REDIS_ADAPTER_SOURCES})

  2. Include the ${REDIS_ADAPTER_INCLUDE_DIRS} in your include directories using:

    include_directories(${REDIS_ADAPTER_INCLUDE_DIRS})

  3. Link against ${REDIS_ADAPTER_LIBRARIES} by adding it to your target's libraries list:

    target_link_libraries(RedisAdapterTest ${REDIS_ADAPTER_LIBRARIES})

  4. Require ${REDIS_ADAPTER_COMPILER_FEATURES} by adding it to your target's compiler features list:

    target_compile_features(RedisAdapterTest PUBLIC ${REDIS_ADAPTER_COMPILER_FEATURES})

Example CMakeLists.txt: ```cmake cmakeminimumrequired(VERSION 3.6) project(RedisAdapterTest LANGUAGES CXX)

Include the CMakeLists.txt file for RedisAdapter

add_subdirectory(RedisAdapter)

Compile this project's sources and RedisAdapter's sources into RedisAdapterTest

addexecutable(RedisAdapterTest main.cpp ${REDISADAPTER_SOURCES})

Add RedisAdapter's include directories

includedirectories(${REDISADAPTERINCLUDEDIRS})

Link RedisAdapter's library dependencies against our executable

targetlinklibraries(RedisAdapterTest ${REDISADAPTERLIBRARIES})

Require RedisAdapter's compiler features

targetcompilefeatures(RedisAdapterTest PUBLIC ${REDISADAPTERCOMPILER_FEATURES}) ```

Owner

  • Name: Fermilab Accelerator Directorate
  • Login: fermi-ad
  • Kind: organization
  • Location: United States of America

Fermilab Accelerator Systems

GitHub Events

Total
  • Issues event: 1
  • Delete event: 1
  • Issue comment event: 2
  • Push event: 5
  • Public event: 1
  • Pull request review event: 1
  • Pull request review comment event: 1
  • Pull request event: 1
  • Create event: 1
Last Year
  • Issues event: 1
  • Delete event: 1
  • Issue comment event: 2
  • Push event: 5
  • Public event: 1
  • Pull request review event: 1
  • Pull request review comment event: 1
  • Pull request event: 1
  • Create event: 1

Issues and Pull Requests

Last synced: 5 months ago

All Time
  • Total issues: 1
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • d4vebr4cey (1)
Pull Request Authors
  • wsulli (1)
Top Labels
Issue Labels
bug (1)
Pull Request Labels

Dependencies

.github/workflows/test-and-benchmark.yml actions
  • actions/checkout v4 composite
.github/workflows/test.yml actions
  • actions/checkout v4 composite