Comments (3)
This is by design to avoid having another empty store-specific interface.
Repository disambiguation works also through annotations on the domain type. If you add @RedisHash
to your entity, you can leverage disambiguation.
Let me know how this goes.
from spring-data-redis.
Of course, as you say, there is a way to use annotations, but according to the reference documentation, a module-based repository should also be provided.
However, in the current implementation, there is no repository interface that is specific to Redis, so there are limited ways to utilize a module-based repository.
So I created a mark interface that is simply an extension of KeyValueRepository. This interface is only utilized by Redis, so it is clearly distinguishable from other repositories.
from spring-data-redis.
Over time, we've realized that introducing module-specific interface types are a harm to the desired programming model. Again, introducing empty marker interfaces do not improve such arrangements but they introduce technology-specific dependencies whereas Spring Data aims to create a store-independent experience in which calling code shouldn't be aware of the technology-specifics.
from spring-data-redis.
Related Issues (20)
- Using `@CacheEvict(... allEntries = true)` with `JdkSerializationRedisSerializer ` for keys does not remove cache entries HOT 4
- Jackson2HashMapper breaks when using GraalVM - NotReadablePropertyException HOT 2
- Question: Keep creating new connections every 5min when using connection pool HOT 4
- Anchors in documentation links lost due to redirects
- Redis Connection Factory Earlier Graceful Shutdown after Spring 3.2 Upgrade - LettuceConnectionFactory SmartLifecycle Backward Compatibility HOT 2
- Spring Data Redis saveAll very slow HOT 1
- Add kotlin extension functions to Mutable collection return type HOT 2
- Release 3.1.10 (2023.0.10)
- Release 3.2.4 (2023.1.4)
- Release 3.3 M2 (2024.0.0)
- Redis Repositories do not find results for custom `find…ById(…)` queries HOT 1
- Add StringCommand for a SET with GET option HOT 1
- Spring Boot 3.2.2 Upgrade Redis - Null key returned for cache operation HOT 3
- SerializationException when using RedisTemplate HOT 1
- Add reactiveRepository HOT 2
- Redis Query-by-Example does not support string matcher STARTING, ENDING using Spring data redis HOT 5
- Extend properties for `RedisSentinelConfiguration`
- Can't Handle GCP Memory Store Redis having extra characters in ClusterNode Entry HOT 3
- Connection hangs forever using lettuce and timeouts are not working HOT 5
- threw exception; nested exception is java.lang.NoClassDefFoundError: redis/clients/jedis/GeoUnit HOT 1
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.