Redis的RDB和AOF选择

2020-10-11
aof,rdb是两种 redis持久化的机制,用于crash后,redis的恢复。 rdb特性 写操作频繁的时候,不启用备份来换取更高的性能,待手动运行save的时候,再做备份. fork一个进程,遍历hash table,利用co...
查看

c++ 宏

2020-10-11
https://github.com/Light-City/CPlusPlusThings/tree/master/basic_content/macro 字符串化操作符“#” 如果熟悉 C++ 宏的小伙伴,可能知道里面有个 # 的用法,...
查看

std::string 转 std::wstring

2020-10-11
inline std::wstring StringToWString(const std::string& str) { int len = ::MultiByteToWideChar(CP_ACP, 0, str.c_str...
查看

C++11函数返回多个不同类型的值, std::tuple

2020-10-10
std::tuple<bool, std::vector<std::string> > find_urls(const std::string& content) { ... return std:...
查看

C++11函数返回多个不同类型的值

2020-10-10
std::tuple<bool, std::vector<std::string> > find_urls(const std::string& content) { ... return std:...
查看

C++11:参数按成员函数启动线程

2020-10-08
使用非静态类成员上述作为线程启动函数 #include <thread> #include <atomic> class Task { public: Task(){ cnt_thread.store(0...
查看

功能日志回调接口

2020-09-27
功能日志接口 // 定义一个输出接口 void on_error(std::function<void(std::string const&)> const& callback) { m_err_call...
查看

C++11新特性

2020-09-23
转自:https://zhuanlan.zhihu.com/p/139515439 auto & decltype https://zhuanlan.zhihu.com/p/137662774 左值右值 https://zhuanl...
查看

Redis2

2020-09-22
结构类型 结构类型 结构存储的值 结构的读写能力 STRING 可以是字符串,整数或者浮点数 对整个字符串或者字符串的其中一部分执行操作;对整数和浮点数执行自增(increment)或者自减(decrement)操作 LI...
查看

布隆过滤器

2020-09-19
https://blog.csdn.net/y1054765649/article/details/88712339
查看