1#!/usr/bin/ruby 2# 3# construct the blocklist in memcache for testing 4# 5 6# for use with memcache-client 1.5.x 7 8require 'rubygems' 9require 'memcache' 10 11@servers = [ 'localhost:11211' ] 12 13@options = { 14 :prefix_key => '', 15 :hash => :default, 16 :distribution => :modula 17} 18 19@cache = MemCache.new(@servers,@options) 20 21# remove the blocks set by setblocks.rb 22for x in 1..4 23 @cache.delete("mb:b:#{x}") 24end 25 26# remove our test whitelist entry 27@cache.delete("mb:w:1") 28 29puts "blocks deleted." 30 31