ioredis-mock
ioredis-mock copied to clipboard
`cmsgpack` global object is missing in lua context
cmsgpack
is a global lua object which allows to pack & unpack messagepacks.
It is a standard object that redis adds, therefore, in my opinion it is better to add it as this mock adds the redis
global object.
A possible js implementation of cmsgpack
can be msgpackr
This code should work:
local packed = cmsgpack.pack('{"some": "obj"}');
return cmsgpack.unpack(packed);
I tried to setup an experiment with it but it's painfully obvious that Lua isn't my forte 😭
Hi, there is any progress with this?