摘要: 转自:http://c.biancheng.net/redis/hashes.html 1.介绍 Redis hash(哈希散列)是由字符类型的 field(字段)和 value 组成的哈希映射表结构(也称散列表),它非常类似于表格结构。在 hash 类型中,field 与 value 一一对应,且 阅读全文
posted @ 2023-01-15 23:14 lypbendlf 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 转自:https://cloud.tencent.com/developer/article/1784548 1.介绍 一般我们的接口操作包括两方面:1计算(主要消耗cpu),2等待IO(对于我们的应用来说就是请求缓存 请求其他协议、请求数据库等)。我们的服务一般也分为CPU密集型(一般是后台脚本类 阅读全文
posted @ 2023-01-15 23:06 lypbendlf 阅读(968) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/DLUTBruceZhang/article/details/9822235 1.例子 int main(){ string s="abc"; cout<<sizeof(s)<<"\n"; cout<<sizeof(string)<<"\n"; ve 阅读全文
posted @ 2023-01-15 20:19 lypbendlf 阅读(2987) 评论(0) 推荐(0) 编辑
摘要: 转自:https://zhuanlan.zhihu.com/p/470315089 1.介绍 通过以下命令: cat /proc/pid/status 即可查看所占用内存情况,C++中通过getpid()函数即可打印进程的pid,类型为pid_t, VSZ:Virtual Memory Size(虚 阅读全文
posted @ 2023-01-15 20:14 lypbendlf 阅读(732) 评论(0) 推荐(0) 编辑