Hi,
to use hiredis, you just have to install the hiredis package on top of the
redis python package.
It is then used automatically if it is present.
pip install redis
pip install hiredis
You can find an example of pipelining with Python in the documentation
at https://github.com/andymccurdy/redis-py
r = redis.Redis(...)
r.set('bing', 'baz')
# Use the pipeline() method to create a pipeline instance
pipe = r.pipeline()
# The following SET commands are buffered
pipe.set('foo', 'bar')
pipe.get('bing')
# the EXECUTE call sends all buffered commands to the server, returning
# a list of responses, one for each command.
pipe.execute()
[True, 'baz']
Here is another example in a larger script:
https://gist.github.com/1771342
Regards,
Didier.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/qQW8AA-TdskJ.
To post to this group, send email to redis-db-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to redis-db+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.