public function toCache($cacheKey, $value, array $references = array())
    {

        // add the value to the cache
        $this->cache[$cacheKey] = $value;

        // also register the references if given
        foreach ($references as $from => $to) {
            $this->references[$from] = $to;
        }
    }
public function toCache($cacheKey, $value, array $references = array())
    {

        // add the value to the cache
        $this->cache[$cacheKey] = $value;

        // also register the references if given
        foreach ($references as $from => $to) {
            $this->references[$from] = $to;
        }
    }
public function toCache ( $ cacheKey , $ value , array $ references = array ( ) ) { // add the value to the cache $ this -> cache [ $ cacheKey ] = $ value ; // also register the references if given foreach ( $ references as $ from => $ to ) { $ this -> references [ $ from ] = $ to ; } }
Add the passed value to the cache.

@param string $cacheKey   The cache key
@param mixed  $value      The value to cache
@param array  $references An array with references to add

@return void
Add the passed value to the cache .