Direct Java API
Go funky with the Redis extension
If you need more power or are familiar with the Redis Java API and want to use some features we haven't implemented yet, first let us know so we can consider that addition in future version, and then head over to the Java Cluster to get direct access to the Redis Java SDK. Behind the scenes our extension leverages the Jedis library for Redis.
We have created several global CFML functions to interact with Redis
redisGetProvider( [cachename=default] )
- Retrieves the underlying Ortus Cache implementationredisGetConnectionPool( [cachename=default] )
- Retrieves the Jedis pool for a specific connection cacheredisGetCluster( [cachename=default] )
- Retrieves the Jedis cache clusterredisGetNodes( [cachename=default] )
- Retrieves a struct of the Jedis pool connections to the cluster.
RedisGetProvider()
RedisGetProvider()
RedisGetProvider()
returns an instance to the Java class that Ortus wrote that proxies between the Redis client and Lucee. It implements lucee.commons.io.cache.Cache
. For the most part you probably won't need this class, but there are a few methods in the Lucee cache interface that aren't available to you via CFML. You can also dump the class and check out all of its functions.
RedisGetConnectionPool()
RedisGetConnectionPool()
RedisGetConnectionPool()
Returns access to a cache's Redis Connection Jedis Pool. It implements redis.clients.jedis.JedisPool
- https://github.com/xetorthio/jedis/blob/master/src/main/java/redis/clients/jedis/JedisPool.java. This will give you direct access to the Jedis Pool connection for that cache.
Last updated