Skip to content

A redis connection pool singleton using modern C++.

Notifications You must be signed in to change notification settings

SorataKasugano/RedisST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedisST

A redis connection pool singleton using modern C++.

Usage

RedisST::SmartST inst = RedisST::instance();
RedisST::SmartConn conn(inst->get_conn(), [inst](redisContext* ctx){ inst->idle_conn(ctx); });
RedisST::SmartReply reply(RedisST::exec_cmd(conn.get(), "set k v"), RedisST::free_reply);

//...

RedisST::instance()->release();

Note

The redis dll/lib/exe could be generated by SorataKasugano/redis which is suitable for most versions of Windows even include xp, it fixed some bugs bases on MicrosoftArchive/redis.

About

A redis connection pool singleton using modern C++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published