lib/asynchronic.rb in asynchronic-1.6.3 vs lib/asynchronic.rb in asynchronic-2.0.0
- old
+ new
@@ -1,13 +1,15 @@
require 'forwardable'
require 'securerandom'
-require 'redis'
require 'ost'
+require 'redic'
require 'class_config'
require 'transparent_proxy'
require 'logger'
require 'multi_require'
+require 'timeout'
+require 'socket'
MultiRequire.require_relative_pattern 'asynchronic/**/*.rb'
module Asynchronic
@@ -18,9 +20,11 @@
attr_config :data_store, DataStore::InMemory.new
attr_config :logger, Logger.new($stdout)
attr_config :retry_timeout, 30
attr_config :garbage_collector_timeout, 30
attr_config :redis_data_store_sync_timeout, 0.01
+ attr_config :keep_alive_timeout, 0.1
+ attr_config :connection_name, "HOST=#{Socket.gethostname},PID=#{::Process.pid}"
def self.environment
Environment.new queue_engine, data_store
end
\ No newline at end of file