Ruby: Caching library to simplify and organize caching