<commit_before># Redi2casa

Redis datastructures using Cassandra

## Installation

Add this line to your application's Gemfile:

    gem 'redi2casa'

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install redi2casa

## Usage

    require "redi2casa"
    r = Redi2casa.new "127.0.0.1:9160", {:keyspace => 'keyspace1'}

#### hincrby & hget

    Increment: r.hincrby "c", "e", 10
    Decrement: r.hincrby "c", "e", -10
    r.hget "c", "e", "counters"

#### hset & hget

    r.hset "a", "b", "hello_world"
    r.hget "a", "b", "sets"

#### hgetall

    r.hgetall "c", "counters"
    r.hgetall "a", "sets"

## Contributing<commit_msg>creating cassandra tables<commit_after># Redi2casa

Redis datastructures using Cassandra

## Installation

Add this line to your application's Gemfile:

    gem 'redi2casa'

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install redi2casa

## Usage
#### create these tables
    cqlsh: create table sets(namespace text primary key, key map<text, text>);
    cassandra-cli: create column family counters with column_type = 'Standard' and comparator = 'UTF8Type' and default_validation_class = 'CounterColumnType' and key_validation_class = 'UTF8Type';

### Now you can
    require "redi2casa"
    r = Redi2casa.new "127.0.0.1:9160", {:keyspace => 'keyspace1'}

#### hincrby & hget

    Increment: r.hincrby "c", "e", 10
    Decrement: r.hincrby "c", "e", -10
    r.hget "c", "e", "counters"

#### hset & hget

    r.hset "a", "b", "hello_world"
    r.hget "a", "b", "sets"

#### hgetall

    r.hgetall "c", "counters"
    r.hgetall "a", "sets"

## Contributing
{'fraction_non_alphanumeric': 0.1465778316172017, 'fraction_numerical': 0.025439127801332527, 'mean_word_length': 3.4769647696476964, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6753221', 'n_tokens_mistral': 665, 'n_tokens_neox': 628, 'n_words': 176}