Sha256: a67b3f0ada89efa783b3f6c0d32a7e47ff7cb6d62aefd8c62269b83453020b7e
Contents?: true
Size: 758 Bytes
Versions: 9
Compression:
Stored size: 758 Bytes
Contents
require "spec/helper/all" describe EM::P::Memcache do it "should fire sequential memcached requests" do EventMachine.synchrony do conn = EM::P::Memcache.connect key = 'key' value = 'value for key' fake_key = 'nonexistent key' # without a corresponding value conn.delete(key) conn.set(key, value) conn.get(key).should == value conn.delete(key) conn.get(key).should be_nil conn.set(key, value) conn.get(key).should == value conn.del(key) conn.get(key).should be_nil conn.set(key, value) conn.get(key, fake_key).should == [value, nil] conn.get_hash(key, fake_key).should == { key => value, fake_key => nil } EventMachine.stop end end end
Version data entries
9 entries across 9 versions & 1 rubygems