国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

ThinkCache

安裝ThinkCache

composer require -W webman/think-cache:~1.0

安裝后需要restart重啟(reload無效)

webman/think-cache 實(shí)際上是一個(gè)自動(dòng)化安裝toptink/think-cache 的插件。

注意
toptink/think-cache 不支持php8.1

配置文件

配置文件為 config/thinkcache.php

使用

  <?php
  namespace app\controller;

  use support\Request;
  use think\facade\Cache;

  class UserController
  {
      public function db(Request $request)
      {
          $key = 'test_key';
          Cache::set($key, rand());
          return response(Cache::get($key));
      }
  }

Think-Cache使用文檔

ThinkCache文檔地址

編輯于2025-02-27 15:28:12 完善本頁 +發(fā)起討論
贊助商