Cas Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Executes the Check-and-set Memcached operation.

Namespace: MySql.Data.MySqlClient.Memcached
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.8.4.0

Syntax

C#
public abstract void Cas(
	string key,
	Object data,
	TimeSpan expiration,
	ulong casUnique
)
Visual Basic
Public MustOverride Sub Cas ( _
	key As String, _
	data As Object, _
	expiration As TimeSpan, _
	casUnique As ULong _
)
Visual C++
public:
virtual void Cas(
	String^ key, 
	Object^ data, 
	TimeSpan expiration, 
	unsigned long long casUnique
) abstract

Parameters

key
Type: System..::..String
The key for identifying the entry.
data
Type: System..::..Object
The data to use in the CAS.
expiration
Type: System..::..TimeSpan
The interval of timespan, use TimeSpan.Zero for no expiration.
casUnique
Type: System..::..UInt64
The CAS unique value to use.

Exceptions

See Also