Skip to:
Test code
fcontent = fileRead("./testfile.txt") writedump(fcontent) directoryCreate("ram://cache", true,true) writedump(directoryList("ram://cache")) fileWrite("ram://cache/testing1.txt", fcontent) fileCopy("./testfile.txt", "ram://cache") newfcontent = fileRead("ram://cache/testing1.txt"); writedump(newfcontent) newfcontent = fileRead("ram://cache/testfile.txt"); writedump(newfcontent)
cfconfig snippet
"resourcecache":{ "class":"ortus.extension.cache.redis.RedisCache", "custom":{ "cacheKeyCaseSensitivity":"false", "database" : "0", "idleConnections":"5", "maxConnections":"50", "username":"", "password":"", "timeout":"5000", "useSSL":"false", "host":"${REDIS_ENDPOINT}", "keyprefix":"loc", "port":"6379" }, "readOnly":"false", "storage":"false" }, ..... "cacheDefaultResource":"resourcecache",
Expected output
Actual output
Slack discussion
Test code
fcontent = fileRead("./testfile.txt") writedump(fcontent) directoryCreate("ram://cache", true,true) writedump(directoryList("ram://cache")) fileWrite("ram://cache/testing1.txt", fcontent) fileCopy("./testfile.txt", "ram://cache") newfcontent = fileRead("ram://cache/testing1.txt"); writedump(newfcontent) newfcontent = fileRead("ram://cache/testfile.txt"); writedump(newfcontent)
cfconfig snippet
"resourcecache":{ "class":"ortus.extension.cache.redis.RedisCache", "custom":{ "cacheKeyCaseSensitivity":"false", "database" : "0", "idleConnections":"5", "maxConnections":"50", "username":"", "password":"", "timeout":"5000", "useSSL":"false", "host":"${REDIS_ENDPOINT}", "keyprefix":"loc", "port":"6379" }, "readOnly":"false", "storage":"false" }, ..... "cacheDefaultResource":"resourcecache",
Expected output
Actual output
Slack discussion