-
Notifications
You must be signed in to change notification settings - Fork 90
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
Determine a possible integration with @Cacheable #83
Comments
@sazzad16 Some thoughts on this, if you decide to tackle it. When you use
say, in a service class like:
You typically use a configuration to determine how the cache entries are serialized:
Witht the above configuration, your cache entries end up looking like this:
E.g., they are simple Redis keys, not Hashes or ReJSON values. Therefore we would need in the project that produces this artifact:
Override the classes that use plain Redis Strings as the caching mechanism to use either JSON or Hashes (the things that are indexable and searchable in Redis) and users would have to mark the entities with If the entity is not a Redis entity, say they are using caching for a relational database (likely the more common case) they would have to mark the entity with some new annotation, maybe |
I have an application that uses redis as cache in my springboot application where it uses cache annotations(@Cacheable,@CacheEvict,@CachePut) to leverage redis .I don't see a way to leverage redis-om-spring to query by index to the data that was stored through cache annotations .
Could you show a way to integrate springboot cache with redis-om-spring
The text was updated successfully, but these errors were encountered: