kjdev / nginx-keyval

Nginx module for the key-value store
MIT License
20 stars 4 forks source link

Redis zone doesn't work #3

Open jaimedelano opened 1 year ago

jaimedelano commented 1 year ago

Redis zone doesn't work with Nginx 1.23.3

keyval_zone_redis zone=handler; keyval disabled $inactive zone=handler;

redis-cli SET disabled 1

redis-cli GET disabled returns "1" but Nginx variable $inactive is empty

kjdev commented 1 year ago

Redis uses a key that combines the zone name and key name. ({zone}:{key})

redis-cli SET handler:disabled 1