Click or drag to resize

QdbStringGetAndUpdate Method

Atomically gets the content and replaces it.

Namespace:  Quasardb
Assembly:  Quasardb (in Quasardb.dll) Version: 3.15.0.0 (3.15.0.0)
Syntax
public string GetAndUpdate(
	string content,
	DateTime? expiryTime = null
)

Parameters

content
Type: SystemString
The new content of the string.
expiryTime (Optional)
Type: SystemNullableDateTime
The new expiry time of the string.

Return Value

Type: String
The previous content of the string.
Exceptions
ExceptionCondition
QdbAliasNotFoundExceptionThe string is not present in the database.
QdbIncompatibleTypeExceptionThe database entry is not a string.
See Also