You may want to ping the node-redis folks about it.
Many other languages just end up using connection pools. On the Python
On Sun, Oct 14, 2012 at 2:20 AM, Marc Gravell <marc.grav...@gmail.com> wrote:
> Indeed, transactions on a multiplexed implementation is really hard for
> checked (WATCH) exceptions. BookSleeve is also multiplexed, and for ages I
> didn't expose WATCH because it breaks horribly on a multiplexer. So I did
> the following, which could perhaps be of use for the node implementation?
> This covers most of the common scenarios without having to drop to lua.
> Of course, it would be even nicer if there was some kind of "ASSERT"
> On 14 Oct 2012, at 08:02, Josiah Carlson <josiah.carl...@gmail.com> wrote:
> On Sat, Oct 13, 2012 at 1:32 AM, Felix E. Klee <felix.k...@inka.de> wrote:
> On Sat, Oct 13, 2012 at 5:14 AM, Josiah Carlson
> <josiah.carl...@gmail.com> wrote:
> Note that Node doesn't support WATCH/MULTI/EXEC transactions.
> What? As far as I understand the node_redis module, it just forwards
> commands to Redis. From the [node_redis documentation]:
> "`MULTI` commands are queued up until an `EXEC` is issued, and then all
> commands are run atomically by Redis."
> I had a discussion here with a fellow who swore up and down that the
> If Node lets you create multiple connections, then I withdraw my claim.
> Also note that there is a fundamental difference between MULTI/EXEC.
> You can also do that with Lua, but AFAIK, that sequence of operations
> Also note that while there are many things that Lua does support,
> there are some operations that Lua doesn't support that are possible
> with WATCH/MULTI/EXEC transactions [...]
> I can list them out if you'd like.
> Just one, please. That could be enlightening.
> 1. Fetch data from Redis
> You can think of this as the explicit cache-update scenario. It is
> By the way, I am using scripting for very simple and well constrained
> tasks. Example:
> I'm glad you figured out how to do this with a single command :)
> - Josiah
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.