Skip to content

Instantly share code, notes, and snippets.

@tom-lpsd
Created May 1, 2010 14:11
Show Gist options
  • Save tom-lpsd/386354 to your computer and use it in GitHub Desktop.
Save tom-lpsd/386354 to your computer and use it in GitHub Desktop.
;; java -cp tokyocabinet.jar:clojure-1.2.0-master-SNAPSHOT.jar clojure.main
(import '(tokyocabinet HDB))
(doto (new HDB)
(.open "hoge.tch" (bit-or HDB/OWRITER HDB/OCREAT))
(.put "1" "one")
(.put "12" "twelve")
(.put "144" "one forty four")
(.close))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment