class Aws::EndpointCache::Endpoint

Constants

CACHE_PERIOD

default endpoint cache time, 1 minute

Attributes

address[R]
String

valid URI address (with path)

Public Class Methods

new(options) click to toggle source
# File lib/aws-sdk-core/endpoint_cache.rb, line 177
def initialize(options)
  @address = options.fetch(:address)
  @cache_period = options[:cache_period_in_minutes] || CACHE_PERIOD
  @created_time = Time.now
end

Public Instance Methods

expired?() click to toggle source
# File lib/aws-sdk-core/endpoint_cache.rb, line 186
def expired?
  Time.now - @created_time > @cache_period * 60
end