Skip to content
nu7hatch edited this page Sep 19, 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.

Don't have Riak yet?

All information about Riak installation and setup you'll find on its wiki page.

Configuration

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 as third param specify an Riak::Client object to already established connection:

my_riak = Riak::Client.new
Aclatraz.init :riak, "roles", my_riak 
Clone this wiki locally