All Projects → aerospike → Aerospike Client Ruby

aerospike / Aerospike Client Ruby

Licence: apache-2.0
Ruby client for the Aerospike database

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Aerospike Client Ruby

Erlach
☣⚫⚫ SPA Imageboad on WebSockets written on Erlang
Stars: ✭ 23 (-57.41%)
Mutual labels:  nosql
Cosyan
Transactional SQL based RDBMS with sophisticated multi table constraint logic.
Stars: ✭ 45 (-16.67%)
Mutual labels:  nosql
Sql Boot
Advanced REST-wrapper for your SQL-queries (actually not only SQL)
Stars: ✭ 51 (-5.56%)
Mutual labels:  nosql
Jetbrains Webcast Build With Mongodb
Code and handouts for my JetBrains webcast recorded January 30, 2018
Stars: ✭ 25 (-53.7%)
Mutual labels:  nosql
Keyvast
KeyVast - A key value store
Stars: ✭ 33 (-38.89%)
Mutual labels:  nosql
Titan
A Distributed Redis Protocol Compatible NoSQL Database
Stars: ✭ 1,050 (+1844.44%)
Mutual labels:  nosql
Mondocks
An alternative way to interact with MongoDB databases from F# that allows you to use mongo-idiomatic constructs
Stars: ✭ 20 (-62.96%)
Mutual labels:  nosql
Fluent
Vapor ORM (queries, models, and relations) for NoSQL and SQL databases
Stars: ✭ 1,071 (+1883.33%)
Mutual labels:  nosql
Be Course 17 18
🎓 Backend · 2017-2018 · Curriculum and Syllabus 💾
Stars: ✭ 44 (-18.52%)
Mutual labels:  nosql
Ravendb.identity
RavenDB Identity provider for ASP.NET Core. Let RavenDB manage your users and logins.
Stars: ✭ 50 (-7.41%)
Mutual labels:  nosql
Scylla
NoSQL data store using the seastar framework, compatible with Apache Cassandra
Stars: ✭ 7,393 (+13590.74%)
Mutual labels:  nosql
Infinispan
Infinispan is an open source data grid platform and highly scalable NoSQL cloud data store.
Stars: ✭ 862 (+1496.3%)
Mutual labels:  nosql
Couchdb Net
EF Core-like CouchDB experience for .NET!
Stars: ✭ 50 (-7.41%)
Mutual labels:  nosql
Hrscan2
A self-hosted drag-and-drop, nosql yet fully-featured file-scanning server.
Stars: ✭ 25 (-53.7%)
Mutual labels:  nosql
Client
PHP client for Tarantool.
Stars: ✭ 52 (-3.7%)
Mutual labels:  nosql
Redix
a persistent real-time key-value store, with the same redis protocol with powerful features
Stars: ✭ 907 (+1579.63%)
Mutual labels:  nosql
Nsdb
Natural Series Database
Stars: ✭ 49 (-9.26%)
Mutual labels:  nosql
Nodejs Driver
DataStax Node.js Driver for Apache Cassandra
Stars: ✭ 1,074 (+1888.89%)
Mutual labels:  nosql
Java Client Api
Java client for the MarkLogic enterprise NoSQL database
Stars: ✭ 52 (-3.7%)
Mutual labels:  nosql
Agensgraph
AgensGraph, a transactional graph database based on PostgreSQL
Stars: ✭ 1,056 (+1855.56%)
Mutual labels:  nosql

Aerospike Ruby Client travis codecov gem

An Aerospike library for Ruby.

This library is compatible with Ruby 2.3+ and supports Linux, Mac OS X and various other BSDs.

Usage:

The following is a very simple example of CRUD operations in an Aerospike database.

require 'rubygems'
require 'aerospike'

include Aerospike

client = Client.new("127.0.0.1")

key = Key.new('test', 'test', 'key value')
bin_map = {
  'bin1' => 'value1',
  'bin2' => 2,
  'bin4' => ['value4', {'map1' => 'map val'}],
  'bin5' => {'value5' => [124, "string value"]},
}

client.put(key, bin_map)
record = client.get(key)
record.bins['bin1'] = 'other value'

client.put(key, record.bins)
record = client.get(key)
puts record.bins

client.delete(key)
puts client.exists(key)

client.close

More examples illustrating the use of the API are located in the examples directory.

Details about the API are available in the docs directory.

Prerequisites

Ruby version v2.3+ is required.

Aerospike Ruby client implements the wire protocol, and does not depend on the C client. It is thread friendly.

Supported operating systems:

  • Major Linux distributions (Ubuntu, Debian, Redhat)
  • Mac OS X
  • other BSDs (untested)

Installation

Installation from Ruby gems

  1. gem install aerospike

Installation from source

  1. Install Ruby 2.3+
  2. Install RubyGems
  3. Install Bundler: gem install bundler
  4. Install dependencies: bundler install
  5. Build and Install the gem locally: rake build && rake install
  6. Run the benchmark: ./tools/benchmark/benchmark.rb -u

Tests

This library is packaged with a number of tests.

To run all the test cases:

$ AEROSPIKE_HOSTS="<host:port>[,<hoist:port>]" AEROSPIKE_USER="<user>" AEROSPIKE_PASSWORD="<pass>" bundle exec rspec

Examples

A variety of example applications are provided in the examples directory.

Tools

A variety of clones of original tools are provided in the tools directory. They show how to use more advanced features of the library to reimplement the same functionality in a more concise way.

Benchmarks

Benchmark utility is provided in the tools/benchmark directory. See the tools/benchmark/README.md for details.

API Documentation

API documentation is available in the docs directory.

License

The Aerospike Ruby Client is made available under the terms of the Apache License, Version 2, as stated in the file LICENSE.

Individual files may be made available under their own specific license, all compatible with Apache License, Version 2. Please see individual files for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].