Large object support
weyus at att.net
Tue Mar 6 22:58:06 UTC 2007
Thanks for the response.
I submitted a bug against this (on the seattlerb project on RubyForge)
that an exception should be thrown.
I spent a loooong time discovering this limit.
I am adding support for large objects to my local copy of memcache-client.
Eric Hodel wrote:
> On Mar 6, 2007, at 09:55, Wes Gamble wrote:
>> I have a Ruby on Rails application running on the following platform:
>> Mandriva Linux release 2006.0 (Official) for i586
>> Kernel 2.6.12-27mdksmp on a 4-processor i686 / \l
>> I'm using the Rubygem "memcache-client" to access and store data in
>> my installation of memcache.
>> I don't seem to be able to store objects of approximate size 1MB or
>> greater in the memcache. These same puts work fine on my Windows box.
>> Are there any known limitations to how large an object can be stored
>> in memcache? Does anyone have any examples of storing something 1MB
>> or so or bigger?
>> Should I be looking at the Ruby binding as the source of my problem?
> $ cat test.rb
> require 'rubygems'
> require 'memcache'
> text = '0' * 1024 * 1024
> mc = MemCache.new 'localhost:11211'
> result = mc.set 'text', text
> puts result
> $ ruby test.rb
> SERVER_ERROR object too large for cache
> I should probably raise an exception, but I don't.
> Running memcached -vv shows the same.
More information about the memcached