lib/stores/cachetastic_stores_base.rb in cachetastic-1.0.6 vs lib/stores/cachetastic_stores_base.rb in cachetastic-1.0.7

- old
+ new

@@ -39,26 +39,9 @@ @servers = self.all_options["servers"] @logging = (self.all_options["logging"] || {}) @logger = Cachetastic::Logger.new(self.logging, self.name) end - # def log(mess, ex = nil) - # self.logging.each_pair do |n, opts| - # - # lm = "[CACHE]\t#{Time.now}:\t#{mess}" - # lm << "\n#{ex.message}\n" << ex.backtrace.join("\n") if ex - # - # case opts["type"] - # when "file" - # File.open(opts["file"], "a") {|f| f.puts(lm)} - # when "console" - # puts lm - # end - # end - # end - - - class << self def get_options(name) options = app_config.cachetastic_default_options options.merge!(app_config.send(name.methodize + "_options") || {}) options = {"store" => "local_memory"}.merge(options) \ No newline at end of file