Tim Badolato
10/27/2023, 10:54 PMsessionCluster (because I read it causes a db read on every request vs temp memory store). If I turn off sessionCluster , sessions only seem to last a few minutes before expiring, even though the session is still active in the DB, it's like it gets clear from the local memory and Lucee doesn't check the DB, it just assumes the session is empty or something. Can anyone clarify the bnhavuour here? There isn't much information out there on the internals of how all this works. I'm on Lucee 5.3.12.1 and here's my session config. Thanks!
this.sessionManagement = true;
this.sessionCluster = false;
this.sessionTimeout = createTimespan(7,0,0,0);
this.sessionStorage = 'rsessions';
this.datasources={
'rsessions' = {
type: 'mysql',
host: 'mariadb',
database: 'rsessions',
port: '3306',
username: 'root',
password: 'pass',
connectionLimit: -1,
blob: false,
clob: true,
storage: true,
timezone: 'GMT',
custom: { useUnicode:true, characterEncoding:'UTF-8' }
}
}bdw429s
10/28/2023, 10:08 AMbdw429s
10/28/2023, 10:09 AMbdw429s
10/28/2023, 10:10 AMbdw429s
10/28/2023, 10:10 AMTim Badolato
10/30/2023, 1:53 PMbdw429s
10/30/2023, 6:08 PMbdw429s
10/30/2023, 6:09 PMTim Badolato
10/30/2023, 8:35 PMortussolutions/commandbox:lucee5-alpine-3.7.12 - I'm guessing it doesn't have the Lucee Redis plugin built in. Is there a good guide for adding it? I also don't have access to the admin and prefer to configure everything programmatically and avoid the GUI.bdw429s
10/30/2023, 8:56 PMbdw429s
10/30/2023, 8:56 PMbdw429s
10/30/2023, 8:56 PMbdw429s
10/30/2023, 8:57 PMTim Badolato
10/30/2023, 10:36 PMthis.cache.connections["redis"] = {
class: 'lucee.extension.io.cache.redis.simple.RedisCache',
storage: true,
custom: {
host: 'redis',
port: 6379,
timeout: 2000,
password: 'pass'
}
};
this.cache.defaultConnection = "redis";
this.sessionStorage = 'redis';
Now I am seeing sessions flowing into the redis db which is great but now if I also want to use it as a cache store I guess I have to mix both session data and cache data in one db as I haven't seen an option to specific the db index in the settings yet.Tim Badolato
10/30/2023, 11:32 PMTim Badolato
10/30/2023, 11:37 PMTim Badolato
10/31/2023, 12:01 AMbdw429s
10/31/2023, 1:41 AMRedis wasn't already in the imageCorrect
it came from the mounted volume to the deploy directory with the lex I had addedLol, how would you have gone through all that trouble and forgot you did it?
it removes the lex file so on the next start it crashes due to the missing value.I have no idea what that means. Missing value??
I'm not sure where to find the guid identifier for the extensionDepends on which Redis extension you want. Lucee has their GUIDs on this page https://download.lucee.org/#60772C12-F179-D555-8E2CD2B4F7428718 Ortus has our own supported extension, here https://forgebox.io/view/5C558CC6-1E67-4776-96A60F9726D580F1
Tim Badolato
10/31/2023, 1:45 AMbdw429s
10/31/2023, 1:50 AMbdw429s
10/31/2023, 1:50 AMbdw429s
10/31/2023, 1:50 AMbdw429s
10/31/2023, 1:51 AMbdw429s
10/31/2023, 1:52 AMI guess I have to mix both session data and cache data in one dbThat's not entirely true. You can create as many cache connection as you like in Lucee and use one of them for session storage and use another one for just data
bdw429s
10/31/2023, 1:53 AMas I haven't seen an option to specific the db index in the settings yetI don't understand what this has to do at all with Redis 🤔
Tim Badolato
10/31/2023, 1:54 AMbdw429s
10/31/2023, 1:55 AMbdw429s
10/31/2023, 1:55 AMbdw429s
10/31/2023, 1:56 AMTim Badolato
10/31/2023, 1:57 AMTim Badolato
10/31/2023, 1:57 AMlmajano
11/06/2023, 2:06 PMlmajano
11/06/2023, 2:06 PMlmajano
11/06/2023, 2:06 PMTim Badolato
11/06/2023, 3:08 PM