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

README.rdoc

Increment command

Implements a simple incr command on top of Tokyo Cabinet via a Lua Extension.

Starting server with incr extension

> ttserver -ext incr.lua test.tch

Executing from command line

> tcrmgr ext localhost incr keyname 2
> 2
> tcrmgr ext localhost incr keyname 2
> 4

Executing via Ruby

> ruby incr.rb
> 2
> 4
> 6
> 8
> 9
> 10