learning from rack-cache gem.