You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -174,6 +174,14 @@ Each type has a corresponding value mapper which can be overriden:
174
174
175
175
`JSON`:: Set with `RedisCacheConfiguration.jsonMapper(RedisStringMapper mapper)`. Defaults to `com.redis.cache.common.mapping.GenericJackson2JsonMapper`.
176
176
177
+
==== Indexing and Querying
178
+
179
+
Use `RedisCacheConfiguration.indexEnabled(true)` to create an index on the cache automatically.
180
+
181
+
The default index name is `<cacheName>Idx` and can be overriden with `RedisCacheConfiguration.indexName(String)`.
182
+
183
+
WHen indexing is enabled you can get a count of entries in the cache using `RedisCache.getCount()`.
0 commit comments