第 9 章《数据库》勘误

91 页

在 9.2 节第一段代码示例中:

redis [2] SET msg"another world"
OK

msg"another world" 之间应该有一个空格, 正确的代码为:

redis [2] SET msg "another world"
OK

感谢 zionwu 反馈这个错误。

103 页

在此页末尾的 PEXPIREAT 函数中:

def PEXPIREAT(key, expire_time_in_ms):

    # ...

    if key not in redisDb.dict:
        return0

    # ...

return0 之间应该有一个空格, 正确的代码为:

if key not in redisDb.dict:
    return 0

感谢 zionwu 反馈这个错误。

讨论

comments powered by Disqus