jedis icon indicating copy to clipboard operation
jedis copied to clipboard

Poposal - lua script helper

Open dvirsky opened this issue 8 years ago • 10 comments

Hi. I've written a little wrapper for running lua scripts with Jedis. I wrote it as an external library because I needed it immediately, but if this direction suits you, I'd be glad to adapt it to Jedis itself and make a proper PR of it.

See https://github.com/RedisLabs/luascript

If it gets integrated inside Jedis, the API could be even nicer than what I did. Let me know if you want this.

Thanks.

dvirsky avatar Mar 02 '16 19:03 dvirsky

@dvirsky I really like this approach and I believe it would be something super valuable to Jedis. I'm in favor of evaluating the alternative to include it.

@HeartSaVioR @xetorthio? WDYT

marcosnils avatar Mar 02 '16 22:03 marcosnils

@marcosnils thanks! I'm thinking that if you add this to jedis, the API will be, instead of LuaScript s = LuaScript.fromResource("lua/simple.lua", "redis://localhost:6379"); - just LuaScript s = myJedis.loadScript("lua/simple.lua);

dvirsky avatar Mar 02 '16 22:03 dvirsky

@dvirsky even better. We'd have to think about how we plug it to other Jedis strategies like ShardedJedis and JedisCluster; but I believe we can start with Jedis and Pipeline and move from there.

marcosnils avatar Mar 02 '16 22:03 marcosnils

@HeartSaVioR ping?

marcosnils avatar Apr 03 '16 22:04 marcosnils

@dvirsky @marcosnils Sorry to late participating. It would be nice to have it. I found some places to comment, but it can be addressed while reviewing pull request. @dvirsky Could you craft a pull request? Thanks!

HeartSaVioR avatar Apr 04 '16 01:04 HeartSaVioR

Sure thing! thanks

dvirsky avatar Apr 04 '16 15:04 dvirsky

Just updating - I've been busy preparing for RedisConf. I'll probably get back to this after I return from the conference. Will any of you attend BTW?

dvirsky avatar May 02 '16 07:05 dvirsky

@dvirsky np, we're waiting wait for your PR anxiously.

Regarding RedisConf we'd really like to attend but @xetorthio and me are in Argentina and @HeartSaVioR in South Korea which makes it really hard for us to be there :cry:

marcosnils avatar May 02 '16 18:05 marcosnils

too bad :) do keep an eye out for the announcements, cool things coming!

dvirsky avatar May 02 '16 19:05 dvirsky

This issue is marked stale. It will be closed in 30 days if it is not updated.

github-actions[bot] avatar Feb 15 '24 00:02 github-actions[bot]