...
I want to store matrices in the shared cache. It looks like I have an issue with fetching them.
I do the following:
Change the map to a string.
Code Block finalMatrix = api.jsonEncode(finalMatrix)
Store the string with the tableName.
Code Block def tableName = (configSister + ":" + hwg).toString() finalMatrices = api.setSharedCache(tableName, finalMatrix) // The shared cache key size should not exceed 10k bytes.
Fetch the string from the shared cache.
Code Block if(finalMatrices != null){ finalMatrix = api.getSharedCache(tableName) }
Change the string to a map again.
Code Block finalMatrix = api.jsonDecode(finalMatrix)
With changing it back to a map I think there is a problem. If I want to fetch a specific line from it afterwards with finalMatrix.findRow("Product ID", productId)
it breaks.
...