Created
December 7, 2014 13:01
-
-
Save aep/608b980a5cfd2b36d86f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redis_config = YAML.load_file(File.join(Rails.root, 'config/redis.yml'))[Rails.env] | |
REDIS_MQTT_DB = ConnectionPool::Wrapper.new(size: redis_config['pool'], timeout: 3) do | |
Redis.new(:host => redis_config['host'], :port => redis_config['port'], :db => redis_config['mqtt_db']) | |
end | |
REDIS_SESSION_DB = ConnectionPool::Wrapper.new(size: redis_config['pool'], timeout: 3) do | |
Redis.new(:host => redis_config['host'], :port => redis_config['port'], :db => redis_config['session_time_db']) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment