Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@walf443
Created January 6, 2014 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walf443/8284358 to your computer and use it in GitHub Desktop.
Save walf443/8284358 to your computer and use it in GitHub Desktop.
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