Welcome! Log In Create A New Profile

Advanced

Setting memcache keys in eval block

Markus Jelsma
February 08, 2010 07:48AM
Hello,


How can i set a memcache key using an arbitrary variable? It seems so
straightforward but i cannot get it up and running. I try to fetch memcache
results using eval, which i will then pass to memcache once again.


This works:
set $memcached_key $cookie_token;
memcached_pass 127.0.0.1:11211;

This doesn't work:
set $cookie_token 'bla';
set $memcached_key $cookie_token;
memcached_pass 127.0.0.1:11211;


Both Memcached modules will complain that the memcached_key or memc_key
variable was not set, this all happens inside an eval block, outside the eval
block does work as expected . I'm using the latest 0.7 stable Nginx and tried
both Memcached modules.



Regards,

Markus Jelsma - Technisch Architect - Buyways BV
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350


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

Setting memcache keys in eval block

Markus Jelsma February 08, 2010 07:48AM

Re: Setting memcache keys in eval block

agentzh February 08, 2010 09:44PM

Re: Setting memcache keys in eval block

Markus Jelsma February 10, 2010 05:24AM

Re: Setting memcache keys in eval block

agentzh February 10, 2010 05:40AM

Re: Setting memcache keys in eval block

Markus Jelsma February 10, 2010 05:52AM

Re: Setting memcache keys in eval block

Eugaia February 10, 2010 11:10PM

Re: Setting memcache keys in eval block

agentzh February 11, 2010 10:30PM

Re: Setting memcache keys in eval block

agentzh February 11, 2010 04:38AM

Re: Setting memcache keys in eval block

agentzh February 11, 2010 04:44AM

Re: Setting memcache keys in eval block

agentzh February 11, 2010 10:28PM

Re: Setting memcache keys in eval block

Markus Jelsma February 12, 2010 05:00AM

Re: Setting memcache keys in eval block

agentzh February 13, 2010 05:26AM

Re: Setting memcache keys in eval block

Valery Kholodkov February 14, 2010 10:36AM

Re: Setting memcache keys in eval block

Markus Jelsma February 14, 2010 03:04PM

Re: Setting memcache keys in eval block

Markus Jelsma February 15, 2010 05:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
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