Issues: https://luceeserver.atlassian.net/issues/?jql=labels%20%3D%20redis
Docs: https://docs.lucee.org/categories/cache.html
For performance, the Redis extension stores data using BSON
The Redis extension previously used Jedis.
Please provide your feedback.
- 4.x is for Lucee 7+ for Jakarta based servlet engines (Tomcat 10+)
- 3.x is for Lucee 5.4 and 6, for Javax based sevlet engines (Tomcat 9)
Install the extension from the Lucee extension store in Lucee admin. Please note that the extension is installable only in the server admin. This means that is not possible to install it for a single web context.
Create a new cache selecting Redis Cache as Type.
Add some configuration:
- If you like you can use the driver to store the Session Scope. If this is your intention you can flag "Allow to use this cache as client/session storage."
- Server/Host => Tells Lucee how to connect to Redis. By default this is set to localhost:6379. Please tune this following your environment's needs. Note that the driver actually support a single Redis Server.
- Namespace => choose the namespace that will be used to avoid keys name clashing between differents cache instances.
All set. You are done.
-
Metadata:
- The cache will return only the hits count for any single key.
- The general counter (missed, hits) for the cache instance itself are not updated
-
idletime: Not supported. Any passed value will be ignored. Timespan is fully supported.
To build the extension, run mvn package
in the root directory