Can someone confirm with me that a Redis connectio...
# adobe
c
Can someone confirm with me that a Redis connection to ACF@2021 can not happen over the SSL port 6379 and has to happen over the NON-SSL port 6380? When I put in port 6380 I get
Redis Connection Verification Failed. java.net.SocketTimeoutException: Read timed out
.
p
Not sure if this is related but here: https://github.com/redis/jedis/issues/1561
What version of redis?
c
I believe 6. It is a Azure Redis cache
@Patrick Yup, 6
p
Firewall settings by chance?
And can you connect via cli? to that 6379 port
c
I haven't gotten that far yet, this is my first time using it. I will try that next.
p
Isnt 6379 the NON-SSL? and 6380 the SSL?
c
No firewall issue on my end, azure has those 2 ports open now.
ACF connects on port 6379 but not 6380
p
So in your advanced settings azure for redis; do you have the Allow access only via SSL enabled;; for a test?
e
c
@Evil Ware This makes me want to try the CacheBox to Redis first.
@Patrick Originally yes, to test I opened the NON-SSL port and then it worked on htat port
e
Commandbox, cachebox, all the little boxes are a fun framework to play around with. @bdw429s is one of the major forces behind it.
p
Use cachebox; way easier and ready to go
Redis for scale
c
@Evil Ware Yes, I've been using commandbox and coldbox for a while. @bdw429s has been a help more times then I can count.
👍 1
@Patrick Time to learn a new box 🙂
p
https://cachebox.ortusbooks.com/ laid out ready to go by the ORTUS SQUADDDD
👍 1
c
@Patrick @Evil Ware @elpete Thanks for your help!
👍 1
e
download cachebox, then define cache regions (pages, or whatever) and then you can use this as a sample // Define a cache region for your query results cacheBox = new CacheBox(); cacheBox.addCacheRegion(name="queryResults", properties={maxEntries=1000, idleTime=3600, timeToLive=7200}); // Check if the query result is already cached cachedResult = cacheBox.getFromCache(name="queryResults", key=cacheKey); // If the result is not cached, execute the query and cache the result if (isNull(cachedResult)) { query = new Query(datasource="myDatasource"); queryResult = query.execute(sql="SELECT * FROM myTable"); cacheBox.addToCache(name="queryResults", key=cacheKey, value=queryResult.getResult()); cachedResult = queryResult.getResult(); } // Use the cached result writeDump(cachedResult);
c
Am I supposed to already have a CacheBox.cfc in my config folder?
e
That would help...
👍 1