lib/puppetx/simp/compliance_mapper.rb
def cached_lookup(key, default, &block)
  if cache_has_key(key)
    retval = cached_value(key)
  else
    retval = yield key, default
    cache(key, retval)
  end
  retval
end
# These cache functions are assumed to be created by the wrapper
# object, either the v3 backend or v5 backend.
These cache functions are assumed to be created by the wrapper
object, either the v3 backend or v5 backend.
These cache functions are assumed to be created by the wrapper object either the v3 backend or v5 backend .
def cached_lookup(key, default, &block)
  if cache_has_key(key)
    retval = cached_value(key)
  else
    retval = yield key, default
    cache(key, retval)
  end
  retval
end
def cached_lookup ( key , default , & block ) if cache_has_key ( key ) retval = cached_value ( key ) else retval = yield key , default cache ( key , retval ) end retval end
These cache functions are assumed to be created by the wrapper
object, either the v3 backend or v5 backend.
These cache functions are assumed to be created by the wrapper object either the v3 backend or v5 backend .
key
default
block