simple cache class implementation for resource classes