See the project's README.
First, install the gem and its dependencies.
bundle
Then, set the required environment variables:
export MOMENTO_API_KEY=<YOUR_API_KEY>
And now you can run the example programs.
ruby ./example.rb
- shows off all the basic functionalityruby ./compact.rb
- the same, written in a compact styleruby ./file.rb
- demonstrates how to cache a file
If you wish to use the version of Momento in this repository, include the lib directory when you run the examples.
ruby -I../lib example.rb