class Geocoder::CacheStore::Redis

def expire; @expiration; end

def expire; @expiration; end

def initialize(store, options)

def initialize(store, options)
  super
  @expiration = options[:expiration]
end

def keys

def keys
  store.keys("#{prefix}*")
end

def read(url)

def read(url)
  store.get key_for(url)
end

def remove(key)

def remove(key)
  store.del(key)
end

def write(url, value, expire = @expiration)

def write(url, value, expire = @expiration)
  if expire.present?
    store.set key_for(url), value, ex: expire
  else
    store.set key_for(url), value
  end
end