Add the ability to check whether a cacheable factory is cached. The function
  `cache_function` is removed in favor of the `FunctionCache` class.
Add a changelog.