Sha256: 3d4ce6cfe05c716a5987a1ba1f9f18b80e85ae6088a67760efa98a311736de0a
Contents?: true
Size: 1.86 KB
Versions: 1
Compression:
Stored size: 1.86 KB
Contents
# ActiveOrm [![Gem Version](https://badge.fury.io/rb/active_orm.svg)](http://badge.fury.io/rb/active_orm) [![Build Status](https://travis-ci.org/drexed/active_orm.svg?branch=master)](https://travis-ci.org/drexed/active_orm) [![Coverage Status](https://coveralls.io/repos/drexed/active_orm/badge.png)](https://coveralls.io/r/drexed/active_orm) ActiveOrm is a library for object ruby mapping of different databases. **Supported:** * Redis **Roadmap:** * Cassandra * InfluxDB Note: Library will be rewritten to be even more flexible for connection switching. ## Installation Add this line to your application's Gemfile: ```ruby gem 'active_orm' ``` And then execute: $ bundle Or install it yourself as: $ gem install active_orm ## Table of Contents * [Redis](#redis) ## Redis **Configuration:** **Options:** * client: add a custom Redis client ```ruby ActiveOrm::Redis.configure do |config| config.client = Redis.new(:host => "10.0.1.1", :port => 6380, :db => 15) end ``` **Usage:** **Commands:** * Geo * Hash * HyperLogLog * Key * List * PubSub * Script * Set * Sorted Set * String * Transaction ```ruby ActiveOrm::Redis::String.create(:month, "01") ActiveOrm::Redis::String.find(:month) #=> "01" ActiveOrm::Redis::String.evaluate.find(:month) #=> 1 ActiveOrm::Redis::List.create(:user_1, { id: 32123, name: "James Dean", username: "alpha123" }) ActiveOrm::Redis::List.find(:user_1) #=> { id: "32123", name: "James Dean", username: "alpha123" } ActiveOrm::Redis::List.evaluate.find(:user_1) #=> { id: 32123, name: "James Dean", username: "alpha123" } ``` ## Contributing 1. Fork it ( https://github.com/[my-github-username]/active_orm/fork ) 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 a new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_orm-1.0.0 | README.md |