a simple cache implementation for rails