Upgrading Rails part 3: Starling and Memcache client
Rails 2.3 ships with an upgraded memcache client. Great stuff! Memcache is at the moment my favourite library. Certainly in combination with the awesome Starling library. Easy queuing!
When I upgraded the stack no longer worked. Starling reported a can't dup NilClass error. I quickly found the offending line. Starling inherits from the main MemCache class. This class just changed and broke the Starling subclass. I believe the breakage was warranted. Starling directly accessed the, now removed, buckets instance variable. This clearly breaks encapsulation and is in my humble opinion bad style. Luckily for me someone on Github already worked out a solution. This is just a hasty patch and I'm eagerly awaiting the new Starling release.