• 尊龙凯时



  • only array cache can be push

    [0] InvalidArgumentException in Driver.php line 118

    查看错误代码
    1. * @param string $name 缓存变量名
    2. * @param mixed $value 存储数据
    3. * @return void
    4. */
    5. public function push(string $name, $value): void
    6. {
    7. $item = $this->get($name, []);
    8. if (!is_array($item)) {
    9. throw new InvalidArgumentException('only array cache can be push');
    10. }
    11. $item[] = $value;
    12. if (count($item) > 1000) {
    13. array_shift($item);
    14. }
    15. $item = array_unique($item);


  • XML地图