This commit is contained in:
Evan Weaver 2011-03-13 23:40:28 -07:00
Родитель 4af0c328e5
Коммит 587559c6b0
4 изменённых файлов: 15 добавлений и 7 удалений

Просмотреть файл

@ -1,4 +1,5 @@
BENCHMARKS
BUG
CHANGELOG
LICENSE
Manifest
@ -8,13 +9,15 @@ TODO
ext/extconf-make.rb
ext/extconf.rb
ext/libmemcached-0.32.tar.gz
ext/libmemcached-1.patch
ext/libmemcached-2.patch
ext/libmemcached-3.patch
ext/libmemcached-4.patch
ext/libmemcached-5.patch
ext/libmemcached-6.patch
ext/libmemcached-7.patch
ext/libmemcached.patch
ext/libmemcached-8.patch
ext/libmemcached-9.patch
ext/rlibmemcached.i
ext/rlibmemcached_wrap.c
ext/sasl.patch
@ -25,6 +28,7 @@ lib/memcached/exceptions.rb
lib/memcached/experimental.rb
lib/memcached/memcached.rb
lib/memcached/rails.rb
lib/rlibmemcached.bundle.dSYM/Contents/Info.plist
test/profile/benchmark.rb
test/profile/c_profiler.rb
test/profile/exercise.rb

Просмотреть файл

@ -13,7 +13,7 @@ class Memcached
BEHAVIORS = load_constants("MEMCACHED_BEHAVIOR_")
BEHAVIOR_VALUES = {
false => 0,
false => 0,
true => 1
}
@ -66,13 +66,12 @@ class Memcached
# Scoped values; still annoying
when :hash then HASH_VALUES.invert[value]
when :distribution then DISTRIBUTION_VALUES.invert[value]
when *DIRECT_VALUE_BEHAVIORS then value
else
BEHAVIOR_VALUES.invert[value]
value
end
else
value
end
end
end
end

Просмотреть файл

@ -121,9 +121,13 @@ Please note that when <tt>:no_block => true</tt>, update methods do not raise on
instance_eval { send(:extend, Experimental) } if options[:experimental_features]
# SASL requires binary protocol
options[:binary_protocol] = true if options[:credentials]
# Force :buffer_requests to use :no_block
# UDP requires noreply
options[:noreply] = true if options[:use_udp]
# Buffering requires non-blocking
# FIXME This should all be wrapped up in a single :pipeline option.
options[:no_block] = true if options[:buffer_requests]

Просмотреть файл

@ -2,6 +2,7 @@
require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
class MemcachedTest < Test::Unit::TestCase
def setup
@servers = ['localhost:43042', 'localhost:43043', "#{UNIX_SOCKET_NAME}0"]
@udp_servers = ['localhost:43052', 'localhost:43053']