Class: Aerospike::Exp::Operation
- Inherits:
-
Object
- Object
- Aerospike::Exp::Operation
- Defined in:
- lib/aerospike/exp/operation.rb
Overview
Expression operations.
Class Method Summary collapse
-
.read(name, exp, flags = Aerospike::Exp::ReadFlags::DEFAULT) ⇒ Object
Create operation that performs a read expression.
-
.write(bin_name, exp, flags = Aerospike::Exp::WriteFlags::DEFAULT) ⇒ Object
Create operation that performs an expression that writes to a record bin.
Class Method Details
.read(name, exp, flags = Aerospike::Exp::ReadFlags::DEFAULT) ⇒ Object
Create operation that performs a read expression. Requires server version 5.6.0+.
40 41 42 |
# File 'lib/aerospike/exp/operation.rb', line 40 def self.read(name, exp, flags = Aerospike::Exp::ReadFlags::DEFAULT) create_operation(Aerospike::Operation::EXP_READ, name, exp, flags) end |
.write(bin_name, exp, flags = Aerospike::Exp::WriteFlags::DEFAULT) ⇒ Object
Create operation that performs an expression that writes to a record bin. Requires server version 5.6.0+.
28 29 30 |
# File 'lib/aerospike/exp/operation.rb', line 28 def self.write(bin_name, exp, flags = Aerospike::Exp::WriteFlags::DEFAULT) create_operation(Aerospike::Operation::EXP_MODIFY, bin_name, exp, flags) end |