{"published":"2017-05-30 19:07:43","provider_url":"https://hatena.blog","author_name":"yomon8","title":"Redis\u304b\u3089TTL(Expire)\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044Key\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b","categories":["Redis"],"provider_name":"Hatena Blog","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyomon.hatenablog.com%2Fentry%2F2017%2F05%2F30%2F190743\" title=\"Redis\u304b\u3089TTL(Expire)\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044Key\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b - YOMON8.NET\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"YOMON8.NET","blog_url":"https://yomon.hatenablog.com/","type":"rich","version":"1.0","url":"https://yomon.hatenablog.com/entry/2017/05/30/190743","image_url":null,"description":"TTL\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u30ad\u30fc\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u4ee5\u4e0b\u3067\u8a00\u3048\u3070\u3001keys=6328703 \u3068 expires=6328701 \u306e\u5dee\u5206\u306e2\u4ef6\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u3067\u3059\u3002 $ redis-cli info keyspace # Keyspace db0:keys=6328703,expires=6328701,avg_ttl=9169857 bash\u3067\u5b9f\u88c5 \u5c11\u91cf\u306e\u30c7\u30fc\u30bf\u306a\u3089\u4ee5\u4e0b\u3067\u4e00\u6c17\u306b\u53d6\u5f97\u53ef\u80fd\u3067\u3059\u3002 Finding non-expiring keys in Redis - Stack Overflow redis-cli keys \"*\" | while read LINE ; do TTL=`re\u2026","author_url":"https://blog.hatena.ne.jp/yomon8/","width":"100%"}