Releases: rainlabs/aerospike_native
Releases · rainlabs/aerospike_native
Added UDF support
Added Scan support
Let's try
20.times do |i|
client.put(AerospikeNative::Key.new(namespace, set, i), {'number' => i, 'key' => 'number', 'testbin' => i.to_s})
end
records = client.scan(namespace, set).select(:number, :key).exec
Added Batch read operations
You can get full records, metadata or specified bins for each record now.
Available list of operations below:
records = client.batch.get_exists(keys) # get metadata
records = client.batch.get(keys) # get records with all bins
records = client.batch.get(keys, bins) # get records with specified bins
Support non-native types (bytes)
Now, you can store non-native types as bin value like float, arrays, hashes, or another objects. They will stored as bytes.
Rework query support and added nil bins
New query interface
records = client.query('test', 'test').where(number: [1, 7]).select([:number]).exec({'timeout' => 10})
Fix set nil as bin value
client.put(key, {'bin' => 1, 'test' => nil})
Added log level to stdout logger output
Added logging support and small fixes
Added AerospikeNative::Logger
and support for external logger.
Now, you can specify logger and log level
AerospikeNative::Client.set_logger Rails.logger # stdout by default
AerospikeNative::Client.set_log_level :info # :debug by default
fixed AerospikeNative::Key.new
with integer as value
Full policy support and fixes
- Added all keys for each policy settings
- Fixed some query bugs
- Added rdoc comments
Query support
Added query where support