<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>redis on seth-shi</title><link>https://sethix.com/tags/redis/</link><description>Recent content in redis on seth-shi</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Wed, 16 Mar 2022 10:09:52 +0800</lastBuildDate><atom:link href="https://sethix.com/tags/redis/index.xml" rel="self" type="application/rss+xml"/><item><title>Optimizing Redis Memory Usage for Ad Service: Reducing 30G+ Memory Footprint</title><link>https://sethix.com/posts/2022031610/</link><pubDate>Wed, 16 Mar 2022 10:09:52 +0800</pubDate><guid>https://sethix.com/posts/2022031610/</guid><description>Problem Analysis While reviewing legacy code, we discovered Redis operations without TTL settings. This likely occurred because:
Hash structures can&amp;rsquo;t set expiration time during creation Subsequent developers forgot to add expiration Common problematic patterns:
Date-based Hash keys
HSET xxx:ad_id:20220315 userid value Orphaned ad keys
HSET xxx:ad_id userid value (after ad campaign ended) Initial cluster status: 8-node cluster with 8GB/node, but actual usage reached 51G+
Memory overconsumption forced continuous resource scaling</description></item><item><title>One-Click PHP Extension Installer</title><link>https://sethix.com/posts/2018022717/</link><pubDate>Tue, 27 Feb 2018 17:00:02 +0800</pubDate><guid>https://sethix.com/posts/2018022717/</guid><description>When beginners learn PHP through tutorial videos, they often encounter the need to enable extensions like openssl and curl, which can be activated by simply modifying the php.ini file. However, installing extensions like redis and memcache requires finding the correct versions matching their PHP, NTS, VC, and Windows environment - a process that&amp;rsquo;s straightforward for experienced developers but challenging for newcomers.
To solve this problem, we&amp;rsquo;ve developed a one-click PHP extension installer program.</description></item></channel></rss>