Sha256: 298e30d2790f14fed62a1652e0b98b99c381572e3c25a027883367ccf7c7f317
Contents?: true
Size: 474 Bytes
Versions: 2
Compression:
Stored size: 474 Bytes
Contents
def #{m} *params Cache.monitor.synchronize do @cache_versions_#{als} ||= {#{vnames_str}} @cache_value_#{als} ||= {} if @cache_versions_#{als}.all?{|vname, v| v == RubyExt::Cache.version(vname)} and @cache_value_#{als}.include?(params) return @cache_value_#{als}[params] else @cache_versions_#{als}.keys.each{|vname| @cache_versions_#{als}[vname] = RubyExt::Cache.version(vname)} return @cache_value_#{als}[params] = cached_#{als}(*params) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
RubyExt-0.1.1 | lib/RubyExt/Cache.res/multiple_version_with_args.txt |
RubyExt-0.1.2 | lib/RubyExt/Cache.res/multiple_version_with_args.txt |