code: public function sizeImageCache($imagePath, $size)
      {
          $sizeKey = md5(json_encode($size));
          if (!($cachePath = $this->cachePath)) {
              return false;
          }
          if (empty($size)) {
              return $imagePath;
          }
          $filename = pathinfo($imagePath);
          $cachePath = $cachePath . DIRECTORY_SEPARATOR . $filename['filename'] . '_' . $sizeKey . '.' . $filename['extension'];
          if (file_exists($cachePath)) {
              return $cachePath;
          }
          $image = $this->followResizeInstructions($imagePath, $size);
          if (!$image) {
              return false;
          }
          $image->save($cachePath);
          if (file_exists($cachePath)) {
              return $cachePath;
          }
  
          return false;
      }
docs: [[@doctodo method_description:sizeImageCache]].
  
  @param [[@doctodo param_type:imagePath]] $imagePath [[@doctodo param_description:imagePath]]
  @param [[@doctodo param_type:size]]      $size      [[@doctodo param_description:size]]
  
  @return [[@doctodo return_type:sizeImageCache]] [[@doctodo return_description:sizeImageCache]]