Sha256: 093a7dd2610052b0b645e8f2e495ab7ddd507a090975d3c2de0ffedea41d0950

Contents?: true

Size: 957 Bytes

Versions: 18

Compression:

Stored size: 957 Bytes

Contents

require 'logger'
require 'active_support/cache'

require 'multi_solr/version'
require 'multi_solr/solr_filter_simple'
require 'multi_solr/solr_filter_collection'
require 'multi_solr/solr_filter_range'
require 'multi_solr/solr_filter_date'
require 'multi_solr/solr_filter_date_range'
require 'multi_solr/solr_filter_free_query'
require 'multi_solr/solr_filter_boolean'
require 'multi_solr/filter_value_composite'
require 'multi_solr/search_request'
require 'multi_solr/search_result'
require 'multi_solr/single_core_handler'
require 'multi_solr/timeline_core_handler'

module MultiSolr

  @@logger = nil
  @@cache = nil

  def logger
    return Rails.logger if defined? Rails
    if @@logger.nil?
      @@logger = Logger.new($stdout)
    end
    @@logger
  end


  def cache
    return Rails.cache if defined? Rails
    if @@cache.nil?
      @@cache = ActiveSupport::Cache::MemoryStore.new
    end
    @@cache
  end

  module_function :logger, :cache

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
multi-solr-01.12.00 lib/multi_solr.rb
multi-solr-01.11.01 lib/multi_solr.rb
multi-solr-01.11.00 lib/multi_solr.rb
multi-solr-01.10.00 lib/multi_solr.rb
multi-solr-01.09.05 lib/multi_solr.rb
multi-solr-01.09.04 lib/multi_solr.rb
multi-solr-01.09.03 lib/multi_solr.rb
multi-solr-01.09.02 lib/multi_solr.rb
multi-solr-01.09.01 lib/multi_solr.rb
multi-solr-01.09.00 lib/multi_solr.rb
multi-solr-01.08.01 lib/multi_solr.rb
multi-solr-01.08.00 lib/multi_solr.rb
multi-solr-01.07.07 lib/multi_solr.rb
multi-solr-01.07.06 lib/multi_solr.rb
multi-solr-01.07.05 lib/multi_solr.rb
multi-solr-01.07.04 lib/multi_solr.rb
multi-solr-01.07.03 lib/multi_solr.rb
multi-solr-01.07.02 lib/multi_solr.rb