Feces is a Ruby client for ShitDB, a crappy key-value store inspired by Redis.
Kudos to @justinko for this appropriate name.
Add this line to your application's Gemfile:
gem 'feces'
And then execute:
$ bundle
Or install it yourself as:
$ gem install feces
require 'feces'
# Our ShitDB is running on port 4999
client = Feces.connect 4999
client.set('foo', [123, 'bar'])
client.apush('foo', 999)
client.get('foo')
# => [123, "bar", 999]
set(key, value)
get(key)
delete(key)
clear
quit
apush(key, value)
apop(key)
aat(key, index)
acount(key)
hset(key, hkey, hvalue)
hget(key, hkey)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
This was made by Josep M. Bach (Txus) under the MIT license. I'm @txustice on twitter (where you should probably follow me!).