IBucketUpsertT Method (String, T, UInt32) |
Inserts or replaces an existing document into Couchbase Server.
Namespace: Couchbase.CoreAssembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxIOperationResult<T> Upsert<T>(
string key,
T value,
uint expiration
)
Function Upsert(Of T) (
key As String,
value As T,
expiration As UInteger
) As IOperationResult(Of T)
generic<typename T>
IOperationResult<T>^ Upsert(
String^ key,
T value,
unsigned int expiration
)
abstract Upsert :
key : string *
value : 'T *
expiration : uint32 -> IOperationResult<'T>
Parameters
- key
- Type: SystemString
The unique key for indexing. - value
- Type: T
The value for the key. - expiration
- Type: SystemUInt32
The time-to-live (ttl) for the key in seconds.
Type Parameters
- T
- The Type of the value to be inserted.
Return Value
Type:
IOperationResultTAn object implementing the
IOperationResultTinterface.
See Also