Aerospike.Database.LINQPadDriver.Extensions Namespace
Aerospike LINDPad Driver

SetRecords..::..Put Method (ARecord, WritePolicy, Nullable<(Of <(<'TimeSpan>)>)>)

Puts (Writes) a DB record based on the provided record including Expiration. Note that if the namespace and/or set is different, this instances's values are used, except in the case where the primary key is a digest. In these cases, an InvalidOperationException is thrown.

Namespace:  Aerospike.Database.LINQPadDriver.Extensions
Assembly:  Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)

Syntax


public void Put(
	ARecord record,
	WritePolicy writePolicy,
	Nullable<TimeSpan> ttl
)

Parameters

record
Type: Aerospike.Database.LINQPadDriver.Extensions..::..ARecord
A ARecord object used to add or update the associated record.
writePolicy
Type: WritePolicy
The write policy. If not provided , the default policy is used.
ttl
Type: Nullable<(Of <(<'TimeSpan>)>)>
Time-to-live of the record. If null (default), the TTL of record is used.

Exceptions


ExceptionCondition
InvalidOperationException If the record's primary key is a digest (not an actual value). This exception will be thrown, since a digest has the namespace and set of where this record was retrieved from.