Example in-memory cache and test class