如何初始化我的 redis_store 以进行连接池。我想添加池属性 { pool_size: 10, pool_timeout: 10 } 我添加了 connection_pool gem
Example::Application.config.session_store :redis_store,
servers: { host: 'localhost',
port: 6379,
db: 0,
namespace: 'session'
},
expires_in: 25.hours,
它在服务器启动时出错。如果我添加如下内容;
Example::Application.config.session_store :redis_store,
servers: { host: 'localhost',
port: 6379,
db: 0,
namespace: 'session'
},
expires_in: 25.hours,
{ pool_size: 10, pool_timeout: 10 }