redis-plus-plus/1.3.12

Redis client written in C++
Recipe info
2024-02-05

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
redis-plus-plus/1.3.12

Using redis-plus-plus

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
redis-plus-plus/1.3.12
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("redis-plus-plus/1.3.12")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): redis++
  • CMake target name(s): redis++::redis++_static
  • redis++lib => redis++::redis++_static
    
  • pkg-config file name(s): redis++.pc
  • redis++lib => redis++.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(redis++ REQUIRED)
# ...
target_link_libraries(YOUR_TARGET redis++::redis++_static)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the redis-plus-plus homepage listed above:

#include "sw/redis++/cmd_formatter.h"
#include "sw/redis++/command.h"
#include "sw/redis++/command_args.h"
#include "sw/redis++/command_options.h"
#include "sw/redis++/connection.h"
#include "sw/redis++/connection_pool.h"
#include "sw/redis++/cxx_utils.h"
#include "sw/redis++/errors.h"
#include "sw/redis++/hiredis_features.h"
#include "sw/redis++/patterns/redlock.h"
#include "sw/redis++/pipeline.h"
#include "sw/redis++/queued_redis.h"
#include "sw/redis++/queued_redis.hpp"
#include "sw/redis++/redis++.h"
#include "sw/redis++/redis.h"
#include "sw/redis++/redis.hpp"
#include "sw/redis++/redis_cluster.h"
#include "sw/redis++/redis_cluster.hpp"
#include "sw/redis++/redis_uri.h"
#include "sw/redis++/reply.h"
#include "sw/redis++/sentinel.h"
#include "sw/redis++/shards.h"
#include "sw/redis++/shards_pool.h"
#include "sw/redis++/subscriber.h"
#include "sw/redis++/tls.h"
#include "sw/redis++/transaction.h"
#include "sw/redis++/utils.h"