-
Notifications
You must be signed in to change notification settings - Fork 1.2k
@RedisHash timeToLive is a long, which is not compatible with the use of spring-style / SPeL #2931
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
Comments
Have you seen that you can annotate individual properties with |
Yes I have seen it, |
We cannot change |
Thanks for your time, responsivity and effort. I understand what you are saying but, I do think that not been integrated with spring-style is a missed feature for spring-data-redis. Interestingly, I am surprised that I am the only one raising this issue. |
This is a nuanced topic as introducing a |
org.springframework.data.redis.core.RedisHash has a field timeToLive typed as long therefor you cannot use SPeL/Spring-style expression.
timeToLive is often a property coming from env properties and therefor pass from parameter.
The current definition of @RedisHash is @RedisHash(value="myIndex", timeToLive=60)
The issue seems to come from a long running issue (compiler issue) here @scheduled

However this is annoying because that force user of @RedisHash to define all index/entity globally using RedisMappingContext bean
linked to : spring-projects/spring-boot#41256
The text was updated successfully, but these errors were encountered: