Skip to content

Instantly share code, notes, and snippets.

@findchris
Created February 24, 2010 03:03
Show Gist options
  • Save findchris/313035 to your computer and use it in GitHub Desktop.
Save findchris/313035 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'rufus/tokyo/tyrant'
db = Rufus::Tokyo::Tyrant.new('localhost', 45001)
puts db.ext(:set_append, 'foo', 'bar')
puts db.ext(:set_append, 'foo', 'bar')
puts db.ext(:set_get, 'foo', '')
db.close
set.lua:set_append:foo:bar
set.lua:set_append:foo:bar
set.lua:set_get:foo:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment