def get(self, key, default):
    ' return cached value for the given key.  If no value\n        was yet cached or the value cannot be read, the specified\n        default is returned.\n\n        :param key: must be a ``/`` separated value. Usually the first\n             name is the name of your plugin or your application.\n        :param default: must be provided in case of a cache-miss or\n             invalid cache values.\n\n        '
    path = self._getvaluepath(key)
    try:
        with path.open('r') as f:
            return json.load(f)
    except (ValueError, IOError, OSError):
        return default
return cached value for the given key.  If no value
was yet cached or the value cannot be read, the specified
default is returned.

:param key: must be a ``/`` separated value. Usually the first
     name is the name of your plugin or your application.
:param default: must be provided in case of a cache-miss or
     invalid cache values.
def get(self, key, default):
    ' return cached value for the given key.  If no value\n        was yet cached or the value cannot be read, the specified\n        default is returned.\n\n        :param key: must be a ``/`` separated value. Usually the first\n             name is the name of your plugin or your application.\n        :param default: must be provided in case of a cache-miss or\n             invalid cache values.\n\n        '
    path = self._getvaluepath(key)
    try:
        with path.open('r') as f:
            return json.load(f)
    except (ValueError, IOError, OSError):
        return default