Creates a new cache, that wraps the old cache and automatically calls @see clear before retrieving a value if shouldClear returns true