Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 218 Bytes
#!/usr/bin/env ruby
require 'bloomfilter'
bf = BloomFilter::CountingRedis.new(:ttl => 2, :server => {:host => 'localhost'})
bf.insert('test')
puts bf.include?('test')
sleep(3)
puts bf.include?('test')
puts bf.stats