Sha256: 0a2697f79058f022e42c0b65504be742453e76c00899ec3a0af5c9fa1d5004cc

Contents?: true

Size: 803 Bytes

Versions: 1

Compression:

Stored size: 803 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_AUTH_TOKEN=<YOUR_AUTH_TOKEN>
export 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.2.0 examples/README.md