Welcome! Log In Create A New Profile

Advanced

Re: lua parser and redis2 questions

agentzh
June 06, 2011 10:56AM
On Mon, Jun 6, 2011 at 7:16 PM, logar.damir <nginx-forum@nginx.us> wrote:
> Agentzh, how about when using select
> (http://www.redis.io/commands/select) to select specific database #.
> Does pipelining work ok in this case?
>
> My command at the moment is:
> redis2_query select 2;
> redis2_query evalsha $sha1keyvickrey 1 $val;
> redis2_query select 0;
> redis2_pass redisbackend;
>

Your sample above should work. If not, please consider filing a bug
ticket on GitHub ;)

> Are this 3 redis2_query commands running on the same connection?

Yes. What I meant in my last email is that there is no such guarantee
across multiple nginx (sub-)requests. Your pipelined redis commands
specified in the same nginx location are always sent on one single
redis TCP connection. So you shouldn't worry about that in this
context.

> If not,
> could you maybe add another variable for database number. Simething
> similar to HttpRedis that has $redis_db (The number of redis database)
> which I think is broken (http://forum.nginx.org/read.php?2,203861).
>

No, I do not want ngx_redis2 to mud with specific redis command
details because the consistency and simplicity of its uniformed wired
protocol is one of the beauties and powers of redis. Leveraging the
redis pipelining feature of ngx_redis2 is sufficient.

Regards,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

lua parser and redis2 questions

gregr401 June 01, 2011 07:27PM

Re: lua parser and redis2 questions

logar.damir June 04, 2011 08:49AM

Re: lua parser and redis2 questions

Marcos Ortiz June 04, 2011 11:12AM

Re: lua parser and redis2 questions

Marcos Ortiz June 04, 2011 11:16AM

Re: lua parser and redis2 questions

agentzh June 04, 2011 11:22AM

Re: lua parser and redis2 questions

gregr401 June 04, 2011 02:15PM

Re: lua parser and redis2 questions

agentzh June 06, 2011 04:06AM

Re: lua parser and redis2 questions

logar.damir June 04, 2011 04:26PM

Re: lua parser and redis2 questions

gregr401 June 05, 2011 06:40PM

Re: lua parser and redis2 questions

agentzh June 06, 2011 04:12AM

Re: lua parser and redis2 questions

logar.damir June 06, 2011 07:16AM

Re: lua parser and redis2 questions

agentzh June 06, 2011 10:56AM

Re: lua parser and redis2 questions

gregr401 June 06, 2011 12:50PM

Re: lua parser and redis2 questions

agentzh June 06, 2011 09:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 253
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready