Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Driver for using Redis as a cache engine in Railo apps

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 extension
Octocat-spinner-32 lib
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 ExtensionProvider.cfc
Octocat-spinner-32 README.md
Octocat-spinner-32 build.xml
Octocat-spinner-32 project.properties
Octocat-spinner-32 reload.cfm
README.md

Railo Redis Cache Extension

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

Install the extension from the railo extension store in railo 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 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 Railo 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.

Something went wrong with that request. Please try again.