摘要: String 单值缓存 set key value get key 对象缓存 set user::name liuyiwen set user::balance 6666 mset user:1:name liuyiwen user:1:balance 6666 mget user:1:name u 阅读全文
posted @ 2021-01-31 16:57 EwenLiu 阅读(50) 评论(0) 推荐(0)
摘要: 准备测试数据 建表 create table lyw_test_account_balance ( id int auto_increment primary key, name varchar(255) not null comment '姓名', balance int default 0 no 阅读全文
posted @ 2021-01-22 16:03 EwenLiu 阅读(167) 评论(0) 推荐(0)
摘要: 索引数据结构详解 索引是为了更高效获取数据的一种有序的数据结构。 数据结构可视化网站:https://www.cs.usfca.edu/~galles/visualization 索引数据结构: 二叉查找树 红黑树 Hash B树 B+树 一个查询例子 id age 1 35 2 20 3 56 4 阅读全文
posted @ 2020-09-12 16:40 EwenLiu 阅读(61) 评论(0) 推荐(0)