code: public function map($key,$obj = null,$need_cache = false){
          $this->clearCache($key);
          if (is_null($obj)) {
              $obj = $key;
          }
          $this->objects[$key] = [$obj,$need_cache];
          return $this;
      }
docs: map an object that not instantiated
  @param $key
  @param $obj
  @param bool $need_cache
  @return $this