Sha256: c9b282baa3127cfdbb178fce1721af389e064e37eb2ee3025a37fee0ab64971b

Contents?: true

Size: 529 Bytes

Versions: 74

Compression:

Stored size: 529 Bytes

Contents

require 'cms_scanner/cache/file_store'

module CMSScanner
  module Cache
    # Cache implementation for Typhoeus
    class Typhoeus < FileStore
      # @param [ Typhoeus::Request ] request
      #
      # @return [ Typhoeus::Response ]
      def get(request)
        read_entry(request.hash.to_s)
      end

      # @param [ Typhoeus::Request ] request
      # @param [ Typhoeus::Response ] response
      def set(request, response)
        write_entry(request.hash.to_s, response, request.cache_ttl)
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
cms_scanner-0.0.41.10 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.41.9 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.41.8 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.41.7 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.41.6 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.41.5 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.41.4 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.41.3 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.41.2 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.41.1 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.41.0 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.40.3 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.40.2 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.40.1 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.40 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.39.4 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.39.3 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.39.2 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.39.1 lib/cms_scanner/cache/typhoeus.rb
cms_scanner-0.0.39.0 lib/cms_scanner/cache/typhoeus.rb