How to use JSON.GET and JSON.SET commands?
#1219
-
|
I am using the Garnet server, built locally, with the SERedis client. Commands like this fail with "ERR unknown command" Should I configure the server in some way to enable the JSON module? I am using https://github.com/microsoft/garnet/releases/tag/v1.0.66 with this work included #974 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
|
@Vijay-Nirmal as the author of that PR, do you have any insights? |
Beta Was this translation helpful? Give feedback.
-
|
You should start Garnet with --loadmodulecs parameters pointed to GarnetJSON.dll module: garnet-server --loadmodulecs fullpath/...GarnetJSON.dll MODULE LOADCS command does the same thing. [Edit: MODULE LOADCS now requires enable-module-command to be set (--enable-module-command). Also ExtensionBinPaths (--extension-bin-path). ] The GarnetJSON.dll module is apparently not included in the artefacts - you'll need to build it manually. |
Beta Was this translation helpful? Give feedback.
You should start Garnet with --loadmodulecs parameters pointed to GarnetJSON.dll module:
garnet-server --loadmodulecs fullpath/...GarnetJSON.dll
MODULE LOADCS command does the same thing. [Edit: MODULE LOADCS now requires enable-module-command to be set (--enable-module-command). Also ExtensionBinPaths (--extension-bin-path). ]
The GarnetJSON.dll module is apparently not included in the artefacts - you'll need to build it manually.