How can I get the value from Redis and put it in a variable in NGiNX? -


here config:

location = /session {             set $redis_key "$cookie_session";             redis_pass 000.00.000.000:6379;             echo $cookie_session;             echo ' - ';             echo $redis_key;     } 

the echos there testing purposes. , hid ip.

i trying sessions data redis via nginx. why installed httpredis.

what don't understand how can data redis put in variable. can use please.

use nginx-eval-module: https://github.com/vkholodkov/nginx-eval-module

this how it:

eval $var {     set $redis_key $uri;     redis_pass 000.00.000.000:6379; } 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -