Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.rdoc
sets.lua
sets.rb

README.rdoc

Set operations for TC

Lua extension with set operations for Tokyo Tyrant edit

Starting server

> ttserver -ext set.lua test.tch

Executing from command line

> tcrmgr ext localhost set_append keyname 1
  1
> tcrmgr ext localhost set_append keyname 3
  3
> tcrmgr ext localhost set_append keyname 5
  5
> tcrmgr ext localhost set_append keyname2 5
  5
> tcrmgr ext localhost set_length keyname
  3
> tcrmgr ext localhost set_get keyname
  1
  3
  5

Executing via Ruby

> ruby sets.rb
> bar
> nil
> bar

Source: github.com/uggedal/tokyo-tyrant-sets/tree/master