Sha256: e3f0642967ab186960de128ffff955e90f9883cc7a95920a15ac3423276f6782

Contents?: true

Size: 805 Bytes

Versions: 1

Compression:

Stored size: 805 Bytes

Contents

<img src="https://docs.momentohq.com/img/logo.svg" alt="Momento logo" width="400"/>

# Momento Ruby Client Examples

## Requirements

See the [project's README](https://github.com/momentohq/client-sdk-ruby/blob/main/README.md).

## Running the examples

First, install the gem and its dependencies.

```sh
bundle
```

Then, set the required environment variables:

```bash
export MOMENTO_API_KEY=<YOUR_API_KEY>
export MOMENTO_CACHE_NAME=<YOUR_CACHE_NAME>
```

And now you can run the example programs.

* example.rb - shows off all the basic functionality
* compact.rb - the same, written in a compact style
* 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.

```sh
ruby -I../lib example.rb
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
momento-0.4.9 examples/README.md