> Hi,
> Both of the following works, what's the difference?
[...]
> Also, in #2, I can wrote either $pipe->execute() or $pipe->exec();
> What's happening here?
> Thanks a lot!
The second one uses a more high-level abstraction built upon the "raw"
MULTI / EXEC / DISCARD commands exposed by the client instance, see
the Predis\MultiExecBlock class at
http://github.com/nrk/predis/blob/v0.6.2/lib/Predis.php#L807 for
further details on how it actually works.
--
Daniele Alessandri
http://clorophilla.net/
http://twitter.com/JoL1hAHN
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
> Hi Daniele,
> Is there any complete documentation for Predis? Today I need to do a
There's the one on GitHub. I know it's incomplete as it does not cover
some of the recent features of the library yet (I'm missing the time
required to update the docs), but every method related to the Redis
commands closely follow the semantics described in the Redis docs so
there's no need to write redundant documentation from scratch. For
usage reference there's always the test suite of Predis which covers
most of the aspects of the library.
> "discard" on pipeline, not multiExec... I have no idea it is available or
> not, but just tried it. It seems worked... I think it is better if there
> is a complete reference.
DISCARD is available just like any Redis command, but it obviously
works only when issued inside a MULTI / EXEC context (pipelined or
not) since it follows the same behaviour as described in the Redis
documentation.
PS: I don't think this list is the right place to ask for specific
questions related to how Predis works. I'm convinced the public API is
quite easy to follow and use just by taking a peek at the source code,
but feel free to contact me privately if you need more clarifications.