Bugs: Browse | Submit New | Admin
The code in memcache_util.rb still fails if there is a cache miss, even if a block is provided. It yields to the block on cache miss, and saves the block return in the cache, but then returns nil to the caller. In the attached patch I have chosen to fix it by renaming the 'result' variable to 'value' but you could of course do it the other way round if you prefer 'result'.
Add A Comment:
Date: 2007-02-28 22:57 Sender: Lee Iverson This doesn't quite get there yet. If there is a MemCache error, then the Cache.get should return nil as well... The patch attached will do that!
Date: 2007-01-05 17:27 Sender: Jon Evans I meant memcache_client, not cached-model. :) memcache-client isn't in the dropdown BTW.