NAME
Data::Riak::HTTP - An interface to a Riak server, using its HTTP (REST) interface
VERSION
version 0.6
ATTRIBUTES
host
The host the Riak server is on. Can be set via the environment variable DATA_RIAK_HTTP_HOST, and defaults to 127.0.0.1.
port
The port of the host that the riak server is on. Can be set via the environment variable DATA_RIAK_HTTP_PORT, and defaults to 8098.
timeout
The maximum value (in seconds) that a request can go before timing out. Can be set via the environment variable DATA_RIAK_HTTP_TIMEOUT, and defaults to 15.
METHODS
base_uri
The base URI for the Riak server.
ping
Tests to see if the specified Riak server is answering. Returns 0 for no, 1 for yes.
send ($request)
Send a Data::Riak::HTTP::Request to the server. If you pass in a hashref, it will create the Request object for you on the fly.
ACKNOWLEDGEMENTS
AUTHOR
Andrew Nelson <anelson at cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.