Граф коммитов

357 Коммитов

Автор SHA1 Сообщение Дата
Arthur Neves 44153ac5bf Add benchmark dependencies 2014-01-30 23:07:05 -05:00
Arthur Neves e51a1cd1f6 Return false on rails client on delete notfound 2014-01-07 14:00:01 -05:00
Evan Weaver b572772a09 Fix tests 2013-08-09 09:00:05 -07:00
Evan Weaver 58b9fc677f Merge branch 'add_snd_timeout' of https://github.com/jreichhold/memcached into jreichhold-add_snd_timeout
Conflicts:
	CHANGELOG
	ext/libmemcached-0.32/libmemcached/memcached_io.c
2013-08-09 08:37:42 -07:00
Joseph Chen 79e4eb2f32 Merge remote-tracking branch 'origin/memcached-rails-fix-write-with-nil-options' into memcached-rails-updates 2013-06-21 15:33:54 -07:00
Joseph Chen a7f4f65002 Fix Memcached::Rails write to allow nil options to be passed. 2013-06-14 15:34:30 -07:00
Joseph Chen 287f407ad9 Adds support for Travis CI.
-Add travis configuration file (tests rubies 1.8.7, 1.9, 2.0, and rbx 1.9 mode).
-Fixes for unit tests breaking under Ruby 1.8.7.
-Updated gemspec to add check for signing key so that we can also build unsigned gem.
-Add travis build status image to README.rdoc.
2013-06-14 14:20:40 -07:00
Joseph Chen c75162e7af Fix Memcached::Rails read to allow nil options to be passed. 2013-06-14 11:23:47 -07:00
Evan Weaver b0f8f8a689 Merge pull request #125 from joe1chen/fix-memcached-rails-fetch
Fix the Memcached::Rails fetch method to work when no block is given.
2013-06-13 23:19:22 -07:00
Joseph Chen 86a802069d Fix Memcached::Rails write method to match ActiveSupport memcache write behavior: 1) support :unless_exist, and 2) convert values to string if :raw is true. 2013-06-13 21:33:03 -07:00
Joseph Chen 6eaacc27e3 Fix Memcached::Rails increment and decrement to more closely behave like ActiveSupport's memcached implementation. Nil is returned when key is not found or other error is encountered. Otherwise a non-null return value is converted into an integer. 2013-06-13 16:23:20 -07:00
Joseph Chen ddc4014ae1 Fix the Memcached::Rails fetch method to work when no block is given. 2013-06-12 16:07:03 -07:00
Evan Weaver 51d349cc1a Not an error. 2013-06-11 01:00:15 -07:00
Evan Weaver 19a23876e3 Coerce objects to strings for get and elsewhere. Closes #105. 2013-06-11 00:54:28 -07:00
Jonathan Reichhold d206824e74 remove infinite loop 2013-03-21 15:35:15 -07:00
Evan Weaver 54a95e6696 1.9 benchmark compatibility 2012-12-08 01:22:40 -08:00
Aman Gupta a5c1687121 add PROFILE=1 to wrap benchmarks in ruby-prof 2012-12-06 18:21:25 -08:00
Aman Gupta 88d9b2c66f skip hash benchmarks when benching specific client/test 2012-12-06 18:21:01 -08:00
Evan Weaver 384029b931 Verify that verify key can be disabled. 2012-09-26 18:34:31 -07:00
Evan Weaver 8f3c37ebf7 Fix #102 2012-09-26 18:01:12 -07:00
Evan Weaver 0f0402d370 Make test_all work again without RVM. 2012-09-07 16:15:56 -07:00
ccocchi a24da268ce Add exist? to benchmark 2012-09-06 18:39:55 +02:00
ccocchi 1845a64506 Revert benchmark changes 2012-09-05 14:52:52 +02:00
ccocchi 44c7532bb4 Add exist method to memcached client.
Add corresponding tests
2012-09-04 10:46:27 +02:00
ccocchi 8b8fd6ee29 Test to add memcached_exist 2012-09-03 05:06:43 +02:00
grosser df39f42fd3 add clear to rails 2012-07-10 15:18:38 -07:00
grosser d1addd2203 add read_multi for rails 2012-07-10 14:43:37 -07:00
Evan Weaver 9424171e18 Merge pull request #91 from grosser/fetch
add fetch
2012-07-05 11:33:00 -07:00
grosser 2bad783a7c add fetch 2012-07-04 22:06:21 -07:00
grosser a195c508df support expires_in in rails 2012-07-04 21:28:35 -07:00
Tom Hughes 43d9863d60 Return the augmented array from servers
Calling server_structs a second time returns a fresh array which
hasn't had the alive? methods added... Also add a test to make sure
the alive? method is working.
2012-02-27 00:22:24 +00:00
Evan Weaver 91e214536b Update benchmarks. Fix bug with setting just one server. 2012-02-26 10:57:42 -08:00
Evan Weaver 1b38c7057c Various fixes. 2012-02-26 10:25:32 -08:00
Tom Hughes d40ca2caf8 Convert TTL values to integer when they are duration objects
In typical rails usage writing 7.days for an expiry will lead to
the TTL value being an ActiveSupport::Duration object.
2012-02-26 15:19:27 +00:00
Tom Hughes e9fb12e5dd Add servers method to Memcached::Rails compatibility wrapper
Memcached::Rails was falling back to the Memcached version of servers
which just returns a host:port:weight tuple, while rails expects to get
an array of server objects which support various methods.
2012-02-26 14:30:31 +00:00
Tom Hughes cab1fa941b Add active? method to Memcached::Rails compatibility wrapper 2012-02-26 14:30:31 +00:00
Greg Campbell 3bc475ec6c Handle unexpected return codes
Previously, these would throw a TypeError because of an attempt to raise
nil, which was a little confusing. This implementation should make them
easier to track.
2011-12-06 14:59:06 -08:00
Evan Weaver 11932d0219 No ruby-debug on JRuby. 2011-10-16 10:40:41 -07:00
Evan Weaver 0995dcd134 Require ffi/times on JRuby. 2011-09-23 14:39:54 -07:00
Evan Weaver 2cc84ad777 Everyone gets a JIT dry run. 2011-09-23 03:39:54 -07:00
Evan Weaver b4cdcd4f7a More loops. 2011-09-23 03:32:35 -07:00
Evan Weaver e876670bd1 Get the GC back out of there. 2011-09-23 03:30:03 -07:00
Evan Weaver 6f630e006c Force native JIT to run on JRuby in benchmark 2011-09-23 03:09:14 -07:00
Evan Weaver cd439dd32e Jruby mostly works. 2011-09-21 18:24:57 -07:00
Evan Weaver 07357976ee Use Jruby-memcached-client on Jruby. 2011-09-21 17:54:57 -07:00
Evan Phoenix d36e1035dd Add check for exception raised by Marshal.load on 1.8 2011-09-20 21:40:36 -07:00
manju 8ea85e886f updated based on Evan's comments 2011-09-14 18:04:14 -07:00
manju b1d3ff3ab4 memcache protocol returns EXISTS the when item you are trying to store with a cas has been modified since you last fetched. The Rails shim over Memcached is supposed to not raise anything for legacy reasons. In order to achieve this, we must rescue ConnectionDataExists! 2011-09-14 15:19:30 -07:00
Sergey Avseyev bbebad6956 Implement TOUCH command
This command is implemented in Couchbase(Membase) memcached server fork.
Touch is useful when it needed to adjust expiration time for given key.
It is possible to run tests for it with following command:

  MEMCACHED_COMMAND=/path/to/memcached rake test
2011-07-29 18:48:41 +03:00
Sergey Avseyev d0ace27d60 Allow using custom memcached executable for tests 2011-07-29 16:39:38 +03:00