Comments (5)
This is a nuanced topic as introducing a String
-based annotation attribute won't make the cut. @Scheduled
introduced a series of String
attribute alternatives that clutter the API. Their format isn't really convenient. We will reconsider this ticket once spring-projects/spring-framework#30396 has been merged so that string-based durations can be expressed in a more readable manner.
from spring-data-redis.
Have you seen that you can annotate individual properties with @TimeToLive
? A numeric property within the data model can serve as a customization hook where you pre-initialize the TTL value with a config value.
from spring-data-redis.
Yes I have seen it,
But for me this option is not an option as I can't change my data model.
from spring-data-redis.
We cannot change @RedisHash(timeToLive)
to a String
as that would break existing applications. Right now, we provide a number of approaches assuming a good fit for the majority of applications. If your specific case comes with limitations that do not match our assumptions, then using the global TTL approach is the best approach.
from spring-data-redis.
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.
from spring-data-redis.
Related Issues (20)
- Bundle Javadoc with Antora documentation site
- Align EnableRedisRepositories with changes in data-commons.
- `StringRedisConnection` returns `null` using read operations during transactions HOT 1
- If ShadowCopy is OFF do not use the phantom key HOT 1
- auto clear pending list after reading msg when process stop HOT 2
- `LettuceConnectionFactory` lifecycle stops connections before depending components are stopped HOT 3
- CacheManager Not working with RedisCredentialsProviderFactory HOT 1
- Upgrade to Maven Wrapper 3.9.8
- Upgrade to Maven Wrapper 3.9.8
- Upgrade to Maven Wrapper 3.9.8
- Upgrade to Lettuce 6.4
- Upgrade to Jedis 5.1.4
- Refactor Tests to `instanceof` pattern variable HOT 2
- Release 3.2.10 (2023.1.10)
- Release 3.3.4 (2024.0.4)
- why opsForHash() method always returns a new instance object
- Add Support to Jedis readOnlyForReplicas property HOT 2
- Add `@Serial` annotation to all `serialVersionUID` fields
- Why bitField offset argument is converted to `int`?
- ReactiveListOperations left/right pop operations fail with Duration with fractions of second
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-redis.