Skip to content
Browse files

doc updates

  • Loading branch information...
1 parent 9c34d87 commit b1a6d12c6211027c47e82f2db34aff1e7e94e1cb @aeden aeden committed with wycats Mar 14, 2009
Showing with 14 additions and 0 deletions.
  1. +1 −0 README
  2. +13 −0 lib/moneta/s3.rb
View
1 README
@@ -10,6 +10,7 @@ Out of the box, it supports:
* In-memory store
* The xattrs in a file system
* DataMapper
+* S3
All stores support key expiration, but only memcache supports it natively. All other stores
emulate expiration.
View
13 lib/moneta/s3.rb
@@ -7,6 +7,19 @@
module Moneta
# An S3 implementation of Moneta
+ #
+ # Example usage:
+ #
+ # require 'rubygems'
+ # require 'moneta'
+ # require 'moneta/s3'
+ #
+ # store = Moneta::S3.new(
+ # :access_key_id => 'ACCESS_KEY_ID',
+ # :secret_access_key => 'SECRET_ACCESS_KEY',
+ # :bucket => 'a_bucket'
+ # )
+ # store['somefile']
class S3
# Initialize the Moneta::S3 store.
#

0 comments on commit b1a6d12

Please sign in to comment.
Something went wrong with that request. Please try again.