Sha256: bd79c68f1c4c0d7d5eaf77c6e24e31b1b50c851ea7a3ce9aa36e2731b1f39c2f
Contents?: true
Size: 1.99 KB
Versions: 3
Compression:
Stored size: 1.99 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" } ``` **Rake:** **Options:** * reset: reset current database * reset_all: reset all databases `rake redis:reset` and `rake redis:reset_all` ## 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_orm-2.0.2 | README.md |
active_orm-2.0.1 | README.md |
active_orm-2.0.0 | README.md |