第二章简单动态字符串

1. SDS的定义 在Redis中的字符串并不是使用C语言中的char数组保存,而是自定义了一个结构体SDS来保存。 redis> SET msg "hello world" OK redis> RPUSH fruits "apple" "banana" "cherry" (integer) 3 在上述例子中,不管是key还是val都是使用SDS类型保存。 struct sdshdr {
相关文章
相关标签/搜索