Skip to content

daodaoliang/qredisclient

 
 

Repository files navigation

qredisclient

API documenation | Examples

Build Status Build status Coverage Status

Asynchronous Qt-based Redis client with SSL and SSH tunnelling support. This client is developed for RedisDesktopManager by Igor Malinovskiy

#include "qredisclient/redisclient.h"

int main(int argc, char *argv[])
{
  // Init qredisclient
  initRedisClient();
  
  // Create connection to local redis
  RedisClient::ConnectionConfig config("127.0.0.1");
  RedisClient::Connection connection(config);
  
  // Run command and wait for result
  connection.commandSync("PING"); 
  
  // Run command in async mode
  connection.command("PING");
  
  // Run command in db #2
  connection.command("PING", 2); 
  
  // Run async command with callback
  connection.command("PING", [](RedisClient::Response r) { 
    QVariant val = r.getValue(); // get value from response
    // do stuff
  });

  // See more usage examples in examples folder
}

Supported Qt versions: 5.4-5.9

About

🔑 Asynchronous Qt-based Redis client with SSL and SSH tunnelling support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.1%
  • QMake 1.6%
  • Shell 1.0%
  • Python 0.8%
  • Lua 0.8%
  • C 0.5%
  • Batchfile 0.2%