protected function setCache($documentId, $value)
    {
        $this->cache[$documentId] = $value;

        return $this->cache[$documentId];
    }
protected function setCache($documentId, $value)
    {
        $this->cache[$documentId] = $value;

        return $this->cache[$documentId];
    }
protected function setCache ( $ documentId , $ value ) { $ this -> cache [ $ documentId ] = $ value ; return $ this -> cache [ $ documentId ] ; }
Put a document into this class' internal cache.

@param string $documentId ID to get from cache.
@param mixed $value Object to store.
@return \Chill\Document[]|array
Put a document into this class internal cache .