nrk / redis-lua

A Lua client library for the redis key value storage system.
MIT License
731 stars 239 forks source link

Cannot specify redis db index #67

Open liamaharon opened 4 years ago

liamaharon commented 4 years ago

I can only seem to connect to redis db 0.

I would like to connect to the redis db at index 15 at this uri redis://localhost:6379/15.

is this possible? if I was to open a PR to make this happen, where would changes need to be made?

pixingdaiyue051 commented 3 years ago

first make sure your redis db numbers is over 1 if not open redis config file to modify it then use cilent:select method to change to any db you want just like in redis command console