class Apollo::Cache::Factory
Public Class Methods
construct()
click to toggle source
# File lib/apollo_crawler/cache/factory.rb, line 39 def self.construct() self.singleton.construct() end
new()
click to toggle source
# File lib/apollo_crawler/cache/factory.rb, line 35 def initialize @cache = nil end
Public Instance Methods
construct()
click to toggle source
# File lib/apollo_crawler/cache/factory.rb, line 43 def construct() if(@cache.nil? == false) return @cache end res = RbConfig::CACHE_CLASS.new(RbConfig::CACHE_CLASS_OPTIONS) @cache = res return res end