Retrieves a document by key and additionally updates the expiry with a new value as an asynchronous operation.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 0.0.0.0 (0.0.0.0)
Syntaxpublic Task<IDocumentResult<T>> GetAndTouchDocumentAsync<T>(
string key,
TimeSpan expiration
)
public Task<IDocumentResult<T>> GetAndTouchDocumentAsync<T>(
string key,
TimeSpan expiration
)
Public Function GetAndTouchDocumentAsync(Of T) (
key As String,
expiration As TimeSpan
) As Task(Of IDocumentResult(Of T))
Public Function GetAndTouchDocumentAsync(Of T) (
key As String,
expiration As TimeSpan
) As Task(Of IDocumentResult(Of T))
public:
generic<typename T>
virtual Task<IDocumentResult<T>^>^ GetAndTouchDocumentAsync(
String^ key,
TimeSpan expiration
) sealed
public:
generic<typename T>
virtual Task<IDocumentResult<T>^>^ GetAndTouchDocumentAsync(
String^ key,
TimeSpan expiration
) sealed
abstract GetAndTouchDocumentAsync :
key : string *
expiration : TimeSpan -> Task<IDocumentResult<'T>>
override GetAndTouchDocumentAsync :
key : string *
expiration : TimeSpan -> Task<IDocumentResult<'T>>
abstract GetAndTouchDocumentAsync :
key : string *
expiration : TimeSpan -> Task<IDocumentResult<'T>>
override GetAndTouchDocumentAsync :
key : string *
expiration : TimeSpan -> Task<IDocumentResult<'T>>
Parameters
- key
- Type: System.String
The key to "touch".
- expiration
- Type: System.TimeSpan
The expiration to extend.
Type Parameters- T
[Missing <typeparam name="T"/> documentation for "M:Couchbase.CouchbaseBucket.GetAndTouchDocumentAsync``1(System.String,System.TimeSpan)"]
Return Value
Type:
Task<IDocumentResult<T>>An
Task<TResult>object representing the asynchronous operation.
Implements
IBucket.GetAndTouchDocumentAsync<T>(String, TimeSpan)
See Also