jedis-mock icon indicating copy to clipboard operation
jedis-mock copied to clipboard

Eval operation not supported

Open vepo opened this issue 6 years ago • 5 comments

I'm using jedis-mock with Redisson. When I call bucket.getAndDelete(), the lib is throwing the following exception:

15:49:42.811 [Thread-41] ERROR c.g.f.j.c.RedisOperationExecutor - Malformed request
java.lang.UnsupportedOperationException: Unsupported operation 'eval'
	at com.github.fppt.jedismock.commands.RedisOperationExecutor.buildSimpleOperation(RedisOperationExecutor.java:148)
	at com.github.fppt.jedismock.commands.RedisOperationExecutor.execCommand(RedisOperationExecutor.java:166)
	at com.github.fppt.jedismock.RedisClient.run(RedisClient.java:48)
	at java.lang.Thread.run(Thread.java:748)

Is eval already supported?

How can I make it work?

vepo avatar Jan 04 '19 18:01 vepo

eval is not yet supported. I will make sure to add it for the next release though. Thanks for raising the issue!

fppt avatar Jan 09 '19 08:01 fppt

So this is turning out more time consuming than I though. i started working with this: https://github.com/luaj/luaj but have not had any luck so far. May have to wait a few releases until I figure this one out. Unless someone can suggest a good way to get java to interpret lua script

fppt avatar Jan 28 '19 12:01 fppt

@fppt What was the issue with luaj integration?

You probably not only need the lua interpreter support, but also to expose any redis functionality to lua that is a part of the redis api.

kazetsukaimiko avatar May 04 '20 18:05 kazetsukaimiko

I'm having the same issue on the latest version in maven repository. Is eval still not supported?

mnsrmov avatar Jun 23 '20 13:06 mnsrmov

I'm having the same issue on the latest version "1.0.5" in maven repository. Is eval still not supported?

Simeon-Yang avatar Nov 18 '22 07:11 Simeon-Yang

@vepo @kazetsukaimiko @mnsrmov @yang-yi-96 great news, after 4 years since the first issue the Lua scripting with LuaJ is finally implemented

inponomarev avatar May 17 '23 22:05 inponomarev

thank you very much

Simeon-Yang avatar May 24 '23 08:05 Simeon-Yang