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

wycats / moneta

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

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (1)
    • 0.6.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.

a unified interface to key/value stores — Read more

  cancel

http://www.yehudakatz.com

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

This URL has Read+Write access

Update to MongoDB to change deprecated method names 
laktek (author)
Sun Aug 23 08:51:36 -0700 2009
wycats (committer)
Mon Aug 24 02:28:51 -0700 2009
commit  a7ce535d5ea01e398bd614641066828b0f263e5e
tree    fed3c5403d59c04719ee6acd1bb123ba81c762c1
parent  abd3afc4ab56470b3333848bca1dd212785f76db
moneta /
name age
history
message
file .gitignore Mon Aug 24 02:25:28 -0700 2009 Ignore vim swp files. Signed-off-by: Yehuda Ka... [abcde]
file LICENSE Wed Feb 11 22:56:10 -0800 2009 Initial commit [wycats]
file README Tue Jul 14 22:34:47 -0700 2009 updating readme with basic file store Signed-o... [hcatlin]
file Rakefile Wed Feb 11 22:56:10 -0800 2009 Initial commit [wycats]
file TODO Wed Feb 11 22:56:10 -0800 2009 Initial commit [wycats]
directory benchmarks/ Fri May 08 21:05:23 -0700 2009 Add tiered to the benches and fix memcache order [wycats]
directory lib/ Mon Aug 24 02:28:51 -0700 2009 Update to MongoDB to change deprecated method n... [laktek]
file moneta.gemspec Mon Jun 01 13:19:03 -0700 2009 Bump gemspec [Yehuda Katz]
directory script/ Wed Feb 11 22:56:10 -0800 2009 Initial commit [wycats]
directory spec/ Mon Aug 24 02:25:30 -0700 2009 Moneta::YAML. Just another option really. Sign... [abcde]
README
Moneta: A unified interface for key/value stores
================================================

Moneta provides a standard interface for interacting with various kinds of key/value stores.

Out of the box, it supports:

* File store for xattr
* Basic File Store
* Memcache store
* In-memory store
* The xattrs in a file system
* DataMapper
* S3
* Berkeley DB
* Redis
* SDBM
* Tokyo
* CouchDB

All stores support key expiration, but only memcache supports it natively. All other stores
emulate expiration.

The Moneta API is purposely extremely similar to the Hash API. In order so support an
identical API across stores, it does not support iteration or partial matches, but that
might come in a future release.

The API:

#initialize(options)::          options differs per-store, and is used to set up the store

#[](key)::                      retrieve a key. if the key is not available, return nil

#[]=(key, value)::              set a value for a key. if the key is already used, clobber it.
                                keys set using []= will never expire

#delete(key)::                  delete the key from the store and return the current value

#key?(key)::                    true if the key exists, false if it does not

#has_key?(key)::                alias for key?

#store(key, value, options)::   same as []=, but you can supply an :expires_in option, 
                                which will specify a number of seconds before the key
                                should expire. In order to support the same features
                                across all stores, only full seconds are supported

#update_key(key, options)::     updates an existing key with a new :expires_in option.
                                if the key has already expired, it will not be updated.

#clear::                        clear all keys in this store
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