WritePolicy MethodsAerospike
The WritePolicy type exposes the following members.
Methods

  NameDescription
Public methodSetPredExp
Set predicate expression filter in postfix notation. If the predicate expression exists and evaluates to false, the transaction is ignored.

Postfix notation is described here: Onlinehttp://wiki.c2.com/?PostfixNotation

Example:

            // Record last update time > 2017-01-15
            policy.SetPredExp(
              PredExp.RecLastUpdate(),
              PredExp.IntegerValue(new DateTime(2017, 0, 15)),
              PredExp.IntegerGreater(),
            ); 
            

(Inherited from Policy.)
Public methodSetTimeout
Create a single timeout by setting socketTimeout and totalTimeout to the same value.
(Inherited from Policy.)
Public methodSetTimeouts
Set socketTimeout and totalTimeout. If totalTimeout defined and socketTimeout greater than totalTimeout, set socketTimeout to totalTimeout.
(Inherited from Policy.)
Back to Top
See Also