Skip to content

Fix: use config.get('grails.redis', Map) to support new Grails versions #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 5.0.x
Choose a base branch
from

Conversation

huangyucaigit
Copy link

In Grails 6+, getProperty() returns only String. This causes grails.redis config to always return empty map.
This PR replaces getProperty() with get('grails.redis', Map, [:]) to correctly retrieve Redis config as Map.
(RedisGrailsPlugin 获取 grails.redis 总是返回[:],因为升级后grails 的getProperty只支持返回string)。

…y with newer Grails versions

备注:RedisGrailsPlugin 获取 grails.redis 总是返回[:],因为升级后的grails中getProperty只支持返回string。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants