lib/adapters/cachetastic_adapters_base.rb in cachetastic-1.3.1 vs lib/adapters/cachetastic_adapters_base.rb in cachetastic-1.4.0

- old
+ new

@@ -44,9 +44,20 @@ ivar_cache(:debug) do (self.all_options["debug"] == true || false) end end + def stats + cache_name = self.name.to_s.camelize + adapter_type = self.class.to_s.gsub('Cachetastic::Adapters::', '') + s = "Cache: #{cache_name}\nStore Type: #{adapter_type}\n" + if self.servers + servers = self.servers.join(',') + s += "Servers: #{servers}" + end + puts s + end + class << self # Merges options for the store in the configuration file with the cachetastic_default_options # found in the configuration file, and returns the results. # Options need to be specified in the configuration file as the methodized name of the cache with # _options attached at the end. \ No newline at end of file