#NEWLINE# def get( self , key , ttl = 0 , quiet = None , replica = False , no_format = False ) : #NEWLINE# #INDENT# 'Obtain an object stored in Couchbase by given key.\n\n        :param string key: The key to fetch. The type of key is the same\n            as mentioned in :meth:`upsert`\n\n        :param int ttl: If specified, indicates that the key\'s expiration\n            time should be *modified* when retrieving the value.\n\n        :param boolean quiet: causes `get` to return None instead of\n            raising an exception when the key is not found. It defaults\n            to the value set by :attr:`~quiet` on the instance. In\n            `quiet` mode, the error may still be obtained by inspecting\n            the :attr:`~.Result.rc` attribute of the :class:`.Result`\n            object, or checking :attr:`.Result.success`.\n\n            Note that the default value is `None`, which means to use\n            the :attr:`quiet`. If it is a boolean (i.e. `True` or\n            `False`) it will override the `Bucket`-level\n            :attr:`quiet` attribute.\n\n        :param bool replica: Whether to fetch this key from a replica\n            rather than querying the master server. This is primarily\n            useful when operations with the master fail (possibly due to\n            a configuration change). It should normally be used in an\n            exception handler like so\n\n            Using the ``replica`` option::\n\n                try:\n                    res = c.get("key", quiet=True) # suppress not-found errors\n                catch CouchbaseError:\n                    res = c.get("key", replica=True, quiet=True)\n\n        :param bool no_format: If set to ``True``, then the value will\n            always be delivered in the :class:`~couchbase.result.Result`\n            object as being of :data:`~couchbase.FMT_BYTES`. This is a\n            item-local equivalent of using the :attr:`data_passthrough`\n            option\n\n        :raise: :exc:`.NotFoundError` if the key does not exist\n        :raise: :exc:`.CouchbaseNetworkError`\n        :raise: :exc:`.ValueFormatError` if the value cannot be\n            deserialized with chosen decoder, e.g. if you try to\n            retreive an object stored with an unrecognized format\n        :return: A :class:`~.Result` object\n\n        Simple get::\n\n            value = cb.get(\'key\').value\n\n        Get multiple values::\n\n            cb.get_multi([\'foo\', \'bar\'])\n            # { \'foo\' : <Result(...)>, \'bar\' : <Result(...)> }\n\n        Inspect the flags::\n\n            rv = cb.get("key")\n            value, flags, cas = rv.value, rv.flags, rv.cas\n\n        Update the expiration time::\n\n            rv = cb.get("key", ttl=10)\n            # Expires in ten seconds\n\n        .. seealso:: :meth:`get_multi`\n        ' #NEWLINE# return _Base . get ( self , key , ttl = ttl , quiet = quiet , replica = replica , no_format = no_format )