<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>运维监控 on 知识铺的博客</title>
    <link>https://index.zshipu.com/geek/tags/%E8%BF%90%E7%BB%B4%E7%9B%91%E6%8E%A7/</link>
    <description>Recent content in 运维监控 on 知识铺的博客</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Wed, 02 Sep 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://index.zshipu.com/geek/tags/%E8%BF%90%E7%BB%B4%E7%9B%91%E6%8E%A7/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>redis-py time() 返回服务端时间戳，影响分布式会话过期判断</title>
      <link>https://index.zshipu.com/geek/post/20260902/redis-py-time-%E8%BF%94%E5%9B%9E%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%97%B6%E9%97%B4%E6%88%B3%E5%BD%B1%E5%93%8D%E5%88%86%E5%B8%83%E5%BC%8F%E4%BC%9A%E8%AF%9D%E8%BF%87%E6%9C%9F%E5%88%A4%E6%96%AD/</link>
      <pubDate>Wed, 02 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://index.zshipu.com/geek/post/20260902/redis-py-time-%E8%BF%94%E5%9B%9E%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%97%B6%E9%97%B4%E6%88%B3%E5%BD%B1%E5%93%8D%E5%88%86%E5%B8%83%E5%BC%8F%E4%BC%9A%E8%AF%9D%E8%BF%87%E6%9C%9F%E5%88%A4%E6%96%AD/</guid>
      <description>redis-py 的 time() 返回的不是客户端本地时间，而是 Redis 服务器的 Unix 时间戳，这一差异直接影响分布式会话存储的过期判断准确性。本篇继续上一篇的四类监控函数，梳理剩余的服务端时间获取、库容量统计、数据库清空及 RDB 持久化辅助函数。 time() 返回服务端 Unix 时间戳而非本地时钟 redis-py 客户端的 time() 方法直接调用 Redis 的 TIME 命令。它不返回 Python</description>
    </item>
  </channel>
</rss>
