jamesls / fakeredis

Fake implementation of redis API (redis-py) for testing purposes
703 stars 185 forks source link

Lua environmental differences #183

Open bmerry opened 6 years ago

bmerry commented 6 years ago

The Lua scripting support (EVAL) does not perfectly emulate the environment available to a real redis script. Some known differences are:

For more details see the redis documentation and implementation.

M1ha-Shvn commented 4 years ago

Also found my scripts not working, as it requires cjson. I get attempt to index a nil value (global 'cjson') error

alifhughes commented 4 years ago

Just wondering if any new release planning to address the first point?

  • Libraries such as cjson are not loaded
bmerry commented 4 years ago

Just wondering if any new release planning to address the first point?

I'm afraid I don't get enough time to spend on fakeredis to make it better (mostly I just try to keep it working as new versions of dependencies come out), and I'm not sure quite what would be involved since I don't use Lua myself. Pull requests are welcome.

alifhughes commented 4 years ago

No worries, thanks for getting back to me quickly.