Skip to content

Commit b9229b4

Browse files
author
Julien Ruaux
committed
Copy files from source repo
1 parent ea810b0 commit b9229b4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
:project-owner: redis-field-engineering
1212
:project-title: Redis Cache Java
1313
:project-url: https://github.com/{project-owner}/{project-dist}
14-
:project-version: 0.3.2
14+
:project-version: 0.4.0
1515

1616
image:https://github.com/{project-owner}/{project-name}/actions/workflows/early-access.yml/badge.svg["Build Status", link="https://github.com/{project-owner}/{project-name}/actions/workflows/early-access.yml"]
1717
image:https://codecov.io/gh/{project-owner}/{project-name}/graph/badge.svg?token={codecov-token}["Coverage", link="https://codecov.io/gh/{project-owner}/{project-name}"]
@@ -174,6 +174,14 @@ Each type has a corresponding value mapper which can be overriden:
174174

175175
`JSON`:: Set with `RedisCacheConfiguration.jsonMapper(RedisStringMapper mapper)`. Defaults to `com.redis.cache.common.mapping.GenericJackson2JsonMapper`.
176176

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()`.
184+
177185

178186
==== Client-Side Caching
179187

0 commit comments

Comments
 (0)