Add convenience methods to mimic Rails.cache interface

Fixing up the style: I hate `class << self`.