No commit activity in last 3 years
No release in over 3 years
Using KyotoTycoon as Ruby objects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

DESCRIPTION¶ ↑

This Ruby gem provide a way to use KyotoTycoon as Ruby objects

INSTALLATION & SETUP¶ ↑

$ gem install kyototycoon-objects

or add this to your Gemfile

gem 'kyototycoon-objects'

HOW TO USE¶ ↑

  • For default, KyotoTycoon will connect to localhost:1978. If you need to connect to a remote server or a different port, create a file config/initializers/kyototycoon.rb with

    require 'kyototycoon'
    KyotoTycoon.configure(:default, "localhost", 1978) { }
    
  • For counters

    In a class, make a declaration like

    class Product
      include KyotoTycoon::Objects
      kyototycoon_counter :page_views, start: 0
    end
    

    And each instance of this class having 2 methods

    p = Product.new.page_views
    p.page_views = 1
    

CONTRIBUTORS¶ ↑

COPYRIGHT © 2013 Framgia Vietnam INC¶ ↑