github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

ihower / handcache

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Use Moneta to provide get_and_set method and compressed feature. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Use moneta to unifiy key-value store interface 
ihower (author)
Tue Aug 18 12:58:38 -0700 2009
commit  7d6471dd59b204ad0bb8d2df188038e2df335750
tree    735d9cc22f1d624490c0752cfea1e37b70ed9819
parent  b7ea1ef9601e4cb52de63f64e0756ace9989b06f
handcache /
name age
history
message
file LICENSE Loading commit data...
file README
directory lib/
README
handcache use Moneta(http://github.com/wycats/moneta) to provide get_and_set method and compressed feature.

== USAGE

Moneta provide many stores, for example:

Add below line to your environment.rb

CacheStore = Moneta::Memory.new

or

CacheStore = Moneta::Memcache.new( :server => "127.0.0.1" )

Then in your code:

data = Handcache.get_and_set("data-123", :expires_in => 60 ) do
          "cached-foobar"
       end
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server