Project

redi2casa

0.0
No commit activity in last 3 years
No release in over 3 years
Providing Redis data-structures using Cassandra
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0
 Project Readme

Redi2casa Gem Version

Redis datastructures using Cassandra.

Installation

$ gem install redi2casa

Configuring cassandra

You need to install cassandra-2.0.x (please follow these instructions, https://gist.github.com/vireshas/7462447)
From the cloned location execute:
cqlsh -f cqlsh_cmds --debug
cassandra-cli -k redi2casa -f cassandra_cli_cmds

Usage

require "redi2casa"
r = Redi2casa.new ["localhost"], 'redi2casa'

Available:  [hset, hget, hincrby, lpush, ltrim, lpop, lrange, rpush, rpop]

You should be passing an extra param(hash) when you call hget to retrieve a hash
r.hset "a", "b", "hello_world"
r.hget "a", "b", "hash"  #the last parameter is needed at the moment

You can find more examples here: https://gist.github.com/vireshas/99bc322cf0ac42fbf7ee

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request