GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feature/issue 214 groovy cache sync 17x by xlorne · Pull Request #218 · codingapi/springboot-framework

Conversation

@xlorne

@xlorne xlorne commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
xlorne added 2 commits November 10, 2026 19:13
@xlorne
fix: Groovy 脚本缓存增加跨实例失效同步与可插拔缓存策略 (17.x/springboot-starter-script)
0355e56
- 新增 GroovyScriptCacheEvent(ISyncEvent):脚本保存/删除后经 EventPusher 进程内分发,业务可通过 IHandler 监听脚本变更
- 新增 GroovyScriptCacheSync SPI(默认 LocalGroovyScriptCacheSync):多实例部署时可接入 Redis pub/sub 等实现跨实例广播,远端实例 receive 后失效本地缓存并回源仓储
- 新增 GroovyScriptCache 缓存容器接口与 DefaultGroovyScriptCache:LRU 容器抽象为可替换策略,支持 Redis 等共享缓存实现
- GroovyScript.save()/remove() 写路径发布缓存变更事件;GroovyScriptCacheContext.remove 改为纯本地失效

Closes #214
@xlorne
docs: 补充 Groovy 脚本缓存多实例部署文档与 Redis 同步实现示例 (17.x/springboot-starter-sc…
e5a67f0
…ript)

- 能力文档新增多实例部署章节:部署前提(共享仓储 + 跨实例失效同步)
- 提供 Redis pub/sub 失效同步(GroovyScriptCacheSync)完整实现示例(推荐方案)
- 提供 Redis 共享缓存容器(GroovyScriptCache)实现示例(可选方案)
- 补充行为说明与注意事项(回环过滤、SHA256 编译缓存自愈、临时脚本进程内语义)

Ref #214
@xlorne
xlorne merged commit 10bc527 into 17.3.x Nov 10, 2026
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@xlorne
xlorne deleted the feature/issue-214-groovy-cache-sync-17x branch November 10, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@xlorne
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.