Skip to content

ankane/morph-ruby

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Morph Ruby

Morph client for Ruby

Build Status

Installation

First, install Morph. For Homebrew, use:

brew install ankane/brew/morph

Add these lines to your application’s Gemfile:

gem 'morph-ruby'

Getting Started

Create a client

morph = Morph::Client.new

Generate a key pair

morph.keygen

Set a key

morph.set("hello", "world")

Note: Each key should only be set once, or the value will not be recoverable

Get a key

morph.get("hello")

Delete all keys

morph.flushall

Get the number of keys

morph.dbsize

List keys

morph.keys("*")

Get info

morph.info

History

View the changelog

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

To get started with development:

git clone https://github.com/ankane/morph-ruby.git
cd morph-ruby
bundle install
bundle exec rake compile
bundle exec rake test

About

Morph client for Ruby

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published