Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require 'dalli'
dalli = Dalli::Client.new("localhost:11211")
p dalli.set("foo", 1)
p dalli.get("foo")
10.times do
pid = Process.fork do
# dalli.reset
100.times do |i|
p [Process.pid, i, dalli.get("foo")]
end
end
Process.detach(pid)
end
#-
loop do
sleep(1)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.