[PR #140] [MERGED] BUGFIX: fix AutoGetWithGetter will never hit cache issue. #332

Closed
opened 2026-02-16 01:15:35 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/140
Author: @zxfishhack
Created: 3/24/2025
Status: Merged
Merged: 3/26/2025
Merged by: @Yeuoly

Base: mainHead: fix-never-hit-cache


📝 Commits (2)

  • 7d8a655 BUGFIX: fix AutoGetWithGetter will never hit cache issue.
  • 3c49043 BUGFIX: fix AutoGetWithGetter will never hit cache issue.

📊 Changes

3 files changed (+17 additions, -3 deletions)

View changed files

📝 internal/utils/cache/redis.go (+6 -1)
📝 internal/utils/cache/redis_auto_type.go (+1 -1)
📝 internal/utils/cache/redis_auto_type_test.go (+10 -1)

📄 Description

add a new function named store for internal use, without calling serialKey.

modify TestAutoTypeWithGetter to call twice, check if cache hit.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/140 **Author:** [@zxfishhack](https://github.com/zxfishhack) **Created:** 3/24/2025 **Status:** ✅ Merged **Merged:** 3/26/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix-never-hit-cache` --- ### 📝 Commits (2) - [`7d8a655`](https://github.com/langgenius/dify-plugin-daemon/commit/7d8a655ef6bc77cd5153931762c2670f884f1b15) BUGFIX: fix AutoGetWithGetter will never hit cache issue. - [`3c49043`](https://github.com/langgenius/dify-plugin-daemon/commit/3c49043a3223df0b6a3597718565d3bf0ece8b30) BUGFIX: fix AutoGetWithGetter will never hit cache issue. ### 📊 Changes **3 files changed** (+17 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `internal/utils/cache/redis.go` (+6 -1) 📝 `internal/utils/cache/redis_auto_type.go` (+1 -1) 📝 `internal/utils/cache/redis_auto_type_test.go` (+10 -1) </details> ### 📄 Description add a new function named `store` for internal use, without calling serialKey. modify `TestAutoTypeWithGetter` to call twice, check if cache hit. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:35 -05:00
yindo closed this issue 2026-02-16 01:15:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#332