Comments (5)
Michael Nitschinger commented
Hi Krishna,
I looked over the code from hazelcast and also didn't see the cache TTL exposed - can you give me an example on how they do that? As far as I know, the spring cache API doesn't expose the TTL explicitly but I would really like to support that.
Let me know and we'll make that happen
from spring-data-couchbase.
Michael Nitschinger commented
What we could do easily is to expose it on the CacheManager, since you can configure that directly. What will be harder is to do it on a per-key basis, maybe we can do that with a annotation on the method, but this needs more thought.
What is your use case here? instance wide TTL or on a per-key basis?
from spring-data-couchbase.
Michael Nitschinger commented
I'm afraid this can't be done easily with the current implementation. The spring docs state explicitly that its not the focus of this API..
If you need it please use the CouchbaseClient API directly. For related needs, the @CacheEvict
annotation can help!
from spring-data-couchbase.
Konrad Krรณl commented
Hey, I think it doesn't make sense to provide cache abstraction where you can't say how long you want to cache objects. That's why I did my fork and pull request that covers functionality requested in this bug. Please take a look here:
#36
from spring-data-couchbase.
Michael Nitschinger commented
I've merged your changes Konrad, thanks much!
Btw, we are working on a Jcache adapter for the 2.0 sdk, so this one can in the future also be used with spring
from spring-data-couchbase.
Related Issues (20)
- Application custom conversions override spring-data-couchbase custom conversions since v5 HOT 6
- Make CrudMethodMetadataPostProcessor public and make factory getTargetRepository() not final (so factory can be extended) HOT 2
- Upgrade to Maven Wrapper 3.9.6
- Upgrade to Maven Wrapper 3.9.6
- Upgrade to Maven Wrapper 3.9.6
- Release 5.1.8 (2023.0.8)
- Release 5.2.2 (2023.1.2)
- Native Build Fails When Couchbase Auditing is Enabled HOT 7
- Extend license header copyright years to 2024
- Extend license header copyright years to 2024
- Extend license header copyright years to 2024
- Extend license header copyright years to 2024
- Native executable run fails with Error creating bean with name 'couchbaseClusterEnvironment' HOT 7
- CouchbaseTransactionalTemplateCollectionIntegrationTests.replacePerson intermittent failure
- Release 5.1.9 (2023.0.9)
- Release 5.2.3 (2023.1.3)
- Bump Couchbase SDK to 3.5.2 for 5.3.0
- Set document expiration dynamically HOT 4
- Update Revved up by Develocity badge
- Update README, update Doc with Spring Boot Compatibility
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-couchbase.