I changed my code to match your approach. I am not sure if the context is set to store to memory of file though. I have "file" in the set and get statements, but according to the guide I'm using, it looks like I may need to change the settings.js file?
contextStorage: {
default : { module: "memory" },
storeInFile: { module: "localfilesystem"},
memoryOnly : { module: "memory" }
},
Perhaps that's the default setting since I'm not seeing an error and it appears that the value is getting stored.