Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Differences between multi get and getMultiple #5

Closed
mrsinham opened this Issue · 2 comments

2 participants

@mrsinham

Hello,

I just want to know the differencies between multiple get inside a transaction and the getMultiple command. Are the commands sended in one time in the first case, are they queue on the server itself or on the client side ?

what is the more efficient between the two ways ?

Thx

@nicolasff
Owner

Hello,

Your interpretation is correct.

getMultiple is the MGET command in Redis (see doc here: http://redis.io/commands/mget), so it'll be sent as a single command.
Using multi()->get('x')->get('y')->...->exec() will send N packets to Redis, which is not as efficient.

Nicolas

@nicolasff nicolasff closed this
@mrsinham

Thanks ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.