Created
January 4, 2016 22:39
-
-
Save cablehead/dd740e9885f3a327cbf3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local d = require("levee").d | |
local ring = d.HashRing() | |
ring:put("foo", 3, 2) | |
print(ring:get("foo")) | |
ring:del("foo") | |
ring:put("foo", 3, 2) | |
print(ring:get("foo") == nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment