摘要: 1. 计算机语言 语言可以分为【编译型】、【解释型】: 编译型:C 解释型:Python 对于 Java : 需要编译,代码需要有编译器编译成字节码 解释执行/直接执行 可移动性,代码一次编译,到处运行,【JVM才是核心】!!! 对于 C 语言: 可移植性,代码对应于不同平台,需要各自编译 【编译器 阅读全文
posted @ 2022-10-19 20:49 编程理想国 阅读(66) 评论(0) 推荐(0)
摘要: 1. Set 1.1 sadd 1.1.1 基本信息 SADD key member [member ...] summary: Add one or more members to a set since: 1.0.0 Add the specified members to the set st 阅读全文
posted @ 2022-10-06 17:31 编程理想国 阅读(89) 评论(0) 推荐(0)
摘要: 1. List 1.1 lindex 1.1.1 基本信息 LINDEX key index summary: Get an element from a list by its index since: 1.0.0 Returns the element at index index in the 阅读全文
posted @ 2022-10-06 17:29 编程理想国 阅读(78) 评论(0) 推荐(0)
摘要: 1. Hash 1.1 hdel 1.1.1 基本信息 HDEL key field [field ...] summary: Delete one or more hash fields since: 2.0.0 Removes the specified fields from the hash 阅读全文
posted @ 2022-10-06 14:47 编程理想国 阅读(65) 评论(0) 推荐(0)
摘要: 1. Generic 1.1 copy 1.1.1 基本信息 COPY source destination [DB destination-db] [REPLACE] summary: Copy a key since: 6.2.0 This command copies the value st 阅读全文
posted @ 2022-10-06 14:45 编程理想国 阅读(128) 评论(0) 推荐(0)
摘要: 1. BitMap 1.1 bitcount 1.1.1 基本信息 BITCOUNT key [start end] summary: Count set bits in a string since: 2.6.0 Count the number of set bits (population c 阅读全文
posted @ 2022-10-03 23:40 编程理想国 阅读(86) 评论(0) 推荐(0)
摘要: Redis命令十分丰富,包括的命令组有Cluster、Connection、Geo、Hashes、HyperLogLog、Keys、Lists、Pub/Sub、Scripting、Server、Sets、Sorted Sets、Strings、Transactions一共14个redis命令组两百多 阅读全文
posted @ 2022-10-03 17:55 编程理想国 阅读(130) 评论(0) 推荐(0)
摘要: 在正式的走入 Redis 的世界之前,我想和你一起探讨下 Redis 的前世,为什么会有 Redis 的出现?是什么促成 Redis 的诞生? 1. 数据的存储 1.1 早期文件存储 在早期,数据库等概念还没诞生的时候,【数据以文件的形式】存储在磁盘上,例如 xxx.txt 文件,程序员通过 awk 阅读全文
posted @ 2022-08-26 00:27 编程理想国 阅读(57) 评论(0) 推荐(0)
摘要: 在 Linux 内核中,一起皆是文件(fd)。 1. BIO 阻塞式 IO BIO,即 Blocking IO,是最原始的 IO,客户端的每次调用都会对应服务端的一个线程/进程,并且在服务端中 socket 数据传输或发送错误之前,socket 是阻塞的。其过程如下图: BIO 是阻塞的,面对高并发 阅读全文
posted @ 2022-08-26 00:26 编程理想国 阅读(27) 评论(0) 推荐(0)