class Geocoder::CacheStore::Base

def config; @config; end

def config; @config; end

def initialize(store, options)

def initialize(store, options)
  @store = store
  @config = options
  @prefix = config[:prefix]
end

def key_for(url)


Cache key for a given URL.
#
def key_for(url)
  if url.match(/^#{prefix}/)
    url
  else
    [prefix, url].join
  end
end

def keys

that have non-nil values.
Array of keys with the currently configured prefix
#
def keys
  store.keys.select { |k| k.match(/^#{prefix}/) and self[k] }
end

def prefix; @prefix; end

def prefix; @prefix; end

def store; @store; end

def store; @store; end

def urls


Array of cached URLs.
#
def urls
  keys
end