Skip to content

MarkSummers/extension-redis-single

 
 

Repository files navigation

Lucee Redis Single Cache Extension

Clone of https://github.com/lucee/extension-redis and adapted to redis single.

The redis driver is based on Jedis. While this is a very robust driver and Redis is amaxing this project has to be considered in Beta stage. Feel free to fork it and provide your feedbacks.

Installation

  • Clone repository.
  • cd extension-redis-single
  • ant modern
  • Upload dist/modern/redisdb-extension.lex in Lucee Admin - Extension - Applications.

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 and configure the cache

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 => says to the Lucee how to connect to Redis. By default this is setted to localhost:6379. Please tune this following your environments needs. Note that the driver actually support a single Redis Server.
  • Namesapce => choose the namespace that will be used to avoid keys name clashing between differents cache instances.

Well. You are done.

Important

  • 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.

About

Lucee Redis Single Cache Extension

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • ColdFusion 62.5%
  • Java 37.5%