4 ms·
Are redis scripts still recommended now that redis modules are a thing? One of the pain points of scripting is the lack of test coverage.
by idank 10y ago
Are redis scripts still recommended now that redis modules are a thing? One of the pain points of scripting is the lack of test coverage.
- pkulak 10y agoIf I was just trying to group 3 operations together into a "transaction", a script would seem like the way to go. But yeah, as soon as my "script" got at all long/complicated, I'd take a long look at making it into a module.
- mwpmaybe 10y agoOr you could use a Redis transaction for a transaction. :-) http://redis.io/topics/transactions http://redis.io/topics/transactions
- catwell 10y agoThere is no reason why modules would be easier to test than scripts. It is probably the opposite. Modules are great when you want to use Redis as a server for something it does not support, but I would still use scripting for most things.