title: AngularJS put an array in $cacheFactory
body: <p>I'm trying to store an array in AngularJS' $cacheFactory. When I try to get the array it's returning undefined.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>  angular.module('cacheExampleApp', []).
      controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {
        $scope.myArray = [
          "one",
          "two",
          "three"
        ];
        $scope.keys = [];
        $scope.cache = $cacheFactory('cacheId');
        $scope.put = function(key, value) {
          $scope.cache.put(myArray, $scope.myArray);
          $scope.keys.push(key);
        };
        console.log("myArray is:");
        console.log($scope.cache.get($scope.myArray));
      }]);
  </code></pre>
  
  <p>...and Plunker.</p>
  
  <p>Any ideas what I'm doing wrong?</p>