eredis_pool
eredis_pool copied to clipboard
Documentation state database is a name (string), but it needs to be an integer
Database in Redis are just integer, not names.
Reference: http://stackoverflow.com/questions/6618291/why-does-redis-use-integer-database-numbers
When you create an eredis_pool, with a database name, you have the following crash:(push-
api@mr-macbook)3> 21:49:22.213 [error] CRASH REPORT Process <0.209.0> with 0 neighbours exited with reason: bad argument in call to erlang:integer_to_list("user_db") in eredis_client:init/1 line 73 in gen_server:init_it/6 line 328