birdy1980
08/05/2022, 10:45 AMqueryExecutecachedWithinbirdy1980
08/05/2022, 10:45 AMlmajano
08/05/2022, 1:00 PMlmajano
08/05/2022, 1:00 PMlmajano
08/05/2022, 4:00 PMlmajano
08/05/2022, 4:01 PMlmajano
08/05/2022, 4:01 PMlmajano
08/05/2022, 4:02 PMlmajano
08/05/2022, 4:05 PMlmajano
08/05/2022, 4:05 PMlmajano
08/05/2022, 4:23 PMlmajano
08/05/2022, 4:23 PMlmajano
08/05/2022, 4:23 PMq = queryExecute(
			"select * from types",
			{},
			{
				cachedwithin : createTimespan( 0, 0, 0, 30 ),
				cacheRegion : "sessions",
				cacheId : "queryTests"
			}
		);lmajano
08/05/2022, 4:23 PMlmajano
08/05/2022, 4:23 PMlmajano
08/05/2022, 4:24 PMlmajano
08/05/2022, 4:27 PMlmajano
08/05/2022, 4:27 PMlmajano
08/05/2022, 4:27 PMlmajano
08/05/2022, 4:27 PMlmajano
08/05/2022, 4:27 PMcacheRegionlmajano
08/05/2022, 4:28 PMApplication.cfclmajano
08/05/2022, 4:28 PMthis.cache.query = 'name'lmajano
08/05/2022, 4:28 PMlmajano
08/05/2022, 4:31 PMlmajano
08/05/2022, 4:32 PMbirdy1980
08/05/2022, 5:41 PMvar sSql="
			select		b.id	as bookId
					  , b.title	as bookTitle
			  from		dbo.book as b
			 where		b.method_id = :methodId ; ";
	var stSqlParams={methodId: {value: arguments.methodId, cfsqltype: "INTEGER"}};
	var qGetBook=queryExecute(sSql, stSqlParams, {cachedWithin: CreateTimeSpan(1, 0, 0, 0)});"cacheDefaultQuery": "QUERY",
"caches": {
    "QUERY": {
        "class": "ortus.extension.cache.redis.RedisCache",
        "custom": {
            "database": "15",
            "host": "x.x.x.x",
            "idleConnections": "5",
            "keyprefix": "${cfconfig_caches_QUERY_custom_keyprefix}",
            "maxConnections": "50",
            "password": "",
            "port": "6379",
            "timeout": "2000",
            "useSSL": "false"
        },
        "storage": "false"
    }
}birdy1980
08/05/2022, 5:42 PMbirdy1980
08/05/2022, 5:49 PM"INFO","XNIO-1 task-2","08/05/2022","10:14:59","application","Creating Redis connection with the following arguments: {idleConnections={5}, maxConnections={50}, host={x.x.x.x}, keyprefix={userinfo}, useSSL={false}, password={}, database={13}, port={6379}, timeout={2000}}"
"INFO","XNIO-1 task-3","08/05/2022","10:14:59","application","Creating Redis connection with the following arguments: {idleConnections={5}, maxConnections={50}, host={x.x.x.x}, keyprefix={userinfo}, useSSL={false}, password={}, database={13}, port={6379}, timeout={2000}}"
"INFO","XNIO-1 task-4","08/05/2022","10:14:59","application","Creating Redis connection with the following arguments: {idleConnections={5}, maxConnections={50}, host={x.x.x.x}, keyprefix={userinfo}, useSSL={false}, password={}, database={13}, port={6379}, timeout={2000}}"
"INFO","XNIO-1 task-1","08/05/2022","10:14:59","application","Creating Redis connection with the following arguments: {idleConnections={5}, maxConnections={50}, host={x.x.x.x}, keyprefix={userinfo}, useSSL={false}, password={}, database={13}, port={6379}, timeout={2000}}"
"INFO","XNIO-1 task-1","08/05/2022","10:14:59","application","Redis Cache [userinfo] accepted, connection built and ready to rock"
"INFO","XNIO-1 task-2","08/05/2022","10:14:59","application","Redis Cache [userinfo] accepted, connection built and ready to rock"
"INFO","XNIO-1 task-3","08/05/2022","10:14:59","application","Redis Cache [userinfo] accepted, connection built and ready to rock"
"INFO","XNIO-1 task-4","08/05/2022","10:14:59","application","Redis Cache [userinfo] accepted, connection built and ready to rock"birdy1980
08/05/2022, 5:51 PM