nu7hatch / aclatraz

Flexible access control mechanism!
MIT License
110 stars 6 forks source link

Redis conf is wrong in the README #8

Open chikamichi opened 13 years ago

chikamichi commented 13 years ago

As of the latest version of redis-rb, the configuration options is a hash with smart default values, so one can either write:

Aclatraz.init :redis
Aclatraz.init :redis, :path => "redis://localhost:6379/0" # the redis-rb defaults
Aclatraz.init :redis, :host => "localhost", :port => 6379, :db => 0

See https://github.com/ezmobius/redis-rb/blob/master/lib/redis/client.rb for the (undocumented) options keys.

This should be fixed in Aclatraz' README :)