openresty / srcache-nginx-module

Transparent subrequest-based caching layout for arbitrary nginx locations.
http://wiki.nginx.org/NginxHttpSRCacheModule
476 stars 105 forks source link

Might be an error in the redis example #56

Closed larssn closed 8 years ago

larssn commented 8 years ago

Hi

Should the line redis_pass 127.0.0.1:6379; be redis2_pass 127.0.0.1:6379; ?

We've been testing with the first variant, but not sure if its optimal.

agentzh commented 8 years ago

@larssn No, there's no typo here. In the srcache_fetch subrequest, you can only use the ngx_redis module instead of the ngx_redis2 module since the latter returns the raw Redis server response while the former returns the decoded user data.

larssn commented 8 years ago

Ah, great to know. Thanks for a good plugin!