<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Redis - 标签 | 飞污熊小站</title><link>https://xiongneng.me/tags/redis/</link><description>飞污熊小站</description><generator>Hugo 0.166.0 &amp; FixIt v0.4.6-20260512073637-464c4659</generator><language>zh-CN</language><managingEditor>yidao620@163.com (XiongNeng)</managingEditor><webMaster>yidao620@163.com (XiongNeng)</webMaster><copyright>XiongNeng</copyright><lastBuildDate>Fri, 25 Sep 2026 02:16:47 +0000</lastBuildDate><atom:link href="https://xiongneng.me/tags/redis/index.xml" rel="self" type="application/rss+xml"/><item><title>SpringBoot4系列08 - 使用缓存</title><link>https://xiongneng.me/posts/java/springboot/sb4-cache/</link><pubDate>Wed, 30 Sep 2026 22:00:00 +0800</pubDate><author>yidao620@163.com (XiongNeng)</author><guid>https://xiongneng.me/posts/java/springboot/sb4-cache/</guid><category domain="https://xiongneng.me/categories/java/">Java</category><description>&lt;p&gt;上一篇讲 Redis 收尾的时候留了句尾巴：RedisTemplate 那套是「自己动手」的用法，键怎么起、TTL 给多少、什么时候删，全是我自己说了算。自己动手自由，可这些手工操作散落在业务代码各处，时间一长就没人说得清全貌了。这一篇讲另一条路，Spring 从 3.1 就备好的声明式缓存：方法上贴个注解，命中不进方法体，未命中执行完自动写缓存，删除也是注解一句话的事。&lt;/p&gt;</description></item><item><title>SpringBoot4系列07 - Redis数据库</title><link>https://xiongneng.me/posts/java/springboot/sb4-redis/</link><pubDate>Wed, 23 Sep 2026 22:00:00 +0800</pubDate><author>yidao620@163.com (XiongNeng)</author><guid>https://xiongneng.me/posts/java/springboot/sb4-redis/</guid><category domain="https://xiongneng.me/categories/java/">Java</category><description>&lt;p&gt;上一篇结尾留了个话头，说从这一篇开始进 &lt;code&gt;P-2&lt;/code&gt;，第一个要面对的问题是「Redis 的操作什么时候算成功，跟本地事务没有半点关系」。&lt;/p&gt;&#10;&lt;p&gt;这一篇就是。&lt;/p&gt;&#10;&lt;p&gt;Redis 不太愿意把自己叫数据库，官方给它的定位是数据结构服务器。String、Hash、List、Set、Sorted Set 这些结构在它这里是一等公民，每个命令都是原子操作，进去了就出结果，没有一半提交一半回滚这回事。&lt;/p&gt;</description></item></channel></rss>