Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 381 Bytes

README.rdoc

File metadata and controls

23 lines (17 loc) · 381 Bytes

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