Completed specs and implementation for the 'cache-factory' module