angular/angular.js — pull request #8214 by kasoban (2014-07-16 11:15:59+00:00)
Title: docs($cacheFactory): prevent example breaking on key update

The example for $cacheFactory breaks when a user tries to update a value for a key.
Setting a new value for an existing key results in duplicate key entries in the key array, thus breaking the ng-repeat directive.
With this fix the key is only added if it isn't contained in the array already.