Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: edb84f614b
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.413 kb
require 'store_client'
s = StoreClient.new("test", [["localhost", "6666"]])
version = s.put("hello", "1")
raise "Invalid result" unless s.get("hello")[0][0] == "1"
s.put("hello", "2", version)
raise "Invalid result" unless s.get("hello")[0][0] == "2"
s.put("hello", "3")
raise "Invalid result" unless s.get("hello")[0][0] == "3"
s.delete("hello")
raise "Invalid result" unless s.get("hello").size == 0
Jump to Line
Something went wrong with that request. Please try again.