# DBManager **Repository Path**: savagecm/DBManager ## Basic Information - **Project Name**: DBManager - **Description**: DBmanager. Now only for redis - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-02-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DBManager DBmanager. Now only for redis It is pretty easy to use. Just include the header file and new a instance. ``` #include "DBM.hpp" int main() { set_log_level(logger_iface::log_level::debug); RedisConnInfo info = RedisConnInfo("127.0.0.1", "6380", ""); auto dbm = new RedisManager(); int index = dbm->add(&info); if (!index) { __LOG(error, "add return fail!"); } // do some work sleep(3); dbm->del(&info); delete(dbm); dbm = NULL; } ```