-
Notifications
You must be signed in to change notification settings - Fork 6
Riak store
nu7hatch edited this page Oct 16, 2010
·
7 revisions
Riak is a distributed key-value store which is using RESTful API to communication. Used with ACLatraz it can be much slower than Redis or TokyoCabinet, but you may want to use it in your apps.
All information about Riak installation and setup you'll find on its wiki page.
After Riak installation you have to install also the riak client for ruby. You can do it easily with rubygems:
sudo gem install riak-client
Once you have installed and configured your Riak database, then you can start playing with ACLatraz. Configuration is preety simple:
Aclatraz.init :riak, "roles", :host => "localhost", :port => 8098
The second parameter is the name of bucket used by ACLatraz, other are the same as for Redis::Client constructor.
You can also specify an Riak::Client
object with already established connection as third param:
my_riak = Riak::Client.new
Aclatraz.init :riak, "roles", my_riak