Sha256: 33d55a74200b1c9c6ffdb3bb2803189b8216fbf5fd1e4d55130fc2dcd4ca0ad4
Contents?: true
Size: 944 Bytes
Versions: 9
Compression:
Stored size: 944 Bytes
Contents
require "spec/helper/all" require "remcached" describe Memcached do it "should yield until connection is ready" do EventMachine.synchrony do Memcached.connect %w(localhost) Memcached.usable?.should be_true EventMachine.stop end end it "should fire sequential memcached requests" do EventMachine.synchrony do Memcached.connect %w(localhost) Memcached.get(key: 'hai') do |res| res[:value].should match('Not found') end Memcached.set(key: 'hai', value: 'win') Memcached.add(key: 'count') Memcached.delete(key: 'hai') EventMachine.stop end end it "should fire multi memcached requests" do EventMachine.synchrony do pending "patch mult-get" Memcached.connect %w(localhost) Memcached.multi_get([{:key => 'foo'},{:key => 'bar'}, {:key => 'test'}]) do |res| # TODO EventMachine.stop end end end end
Version data entries
9 entries across 9 versions & 1 rubygems