ROMA is one of the data storing systems for distributed key-value stores in Ruby.
The gem roma-client is Ruby client to talk with ROMA severs.
Add this line to your application's Gemfile:
  gem 'roma-client'And then execute:
$ bundle
Or install it yourself as:
$ gem install roma-client
  require 'roma/client'
  nodes = ['host1:11211', 'host2:11211']
  client = Roma::Client::RomaClient.new(nodes)
  key = 'key'
  res = client.set(key, 'valie')
  puts "put:#{res}"
  puts "get:#{client.get key}"
  res = client.delete key
  puts "del:#{res}"
  puts "get:#{client.get key}"- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Bug reports and pull requests are welcome on GitHub at https://github.com/roma/roma-ruby-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
GPL v3
Copyright (C) 2009 Rakuten, Inc.