Skip to content

Redis+localStorage双结合缓存

Choose a tag to compare

@Fusuccess Fusuccess released this 23 Apr 15:32
· 8 commits to main since this release

前端缓存功能
● 在前端使用 localStorage 对用户输入和对应的 AI 响应进行缓存,避免重复请求相同数据。
● 缓存失效机制:在存储数据时加上时间戳字段,并设置过期时间,读取数据时检查缓存是否过期。

相关文档:https://www.yuque.com/fusuccess/mbzdug/gwnqvos895mbbq5x