Options for collection::get()
More...
#include <options.hxx>
◆ expiry() [1/2]
CB_NODISCARD boost::optional<uint32_t> couchbase::get_options::expiry |
( |
| ) |
const |
|
inline |
Get expiry.
- Stability
- Volatile:
- Returns
- expiry set in this object, if any.
◆ expiry() [2/2]
get_options& couchbase::get_options::expiry |
( |
uint32_t |
expiry | ) |
|
|
inline |
Set expiry.
- Stability
- Volatile:
This will perform a 'get and touch', updating the exipry and returning the document,
when set. The expiry is a uint32_t representing either the number of seconds from
now that the document will expire, or the epoch seconds that the expiry should occur.
If the value is less than 30 days (30*24*60*60), it is assumed to be the former, otherwisw
the latter. Note that from 30 days to today, the docuent would immediately expire.
- Parameters
-
expiry | Set the desired expiry for this option. |
- Returns
- Reference to this object, so calls can be chained.
The documentation for this class was generated from the following file: