JEDIS: ClassCastException when returning Table from LUA
Hello I am calling a REDIS LUA script with Jedis
Why does this throw a ClassCastException?
Object zot = jedis.eval("return {1,2}");
java.lang.ClassCastException: java.lang.Long cannot be cast to [B
When I try it in redis-cli, it works
redis 127.0.0.1:6379> eval "return {1,2}" 0
1) (integer) 1
2) (integer) 2
Is this a bug, or do I need to know something? Thank you very much Peter
No comments:
Post a Comment