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

think-cache插件

v2.1.2 版本
2025-05-08 版本更新時間
15001 安裝
3 star

簡介

think-cache是ThinkPHP官方的一個PHP緩存組件。

webman/think-cache 是一個自動化安裝卸載 topthink/think-cache 的插件。它不是對topthink/think-cache的二次封裝,它只是一個自動化安裝腳本,用于自動安裝topthink/think-cache并自動配置webman的插件。

注意
topthink/think-cache 不支持php8.1,不支持tag標簽

安裝

composer require -W webman/think-cache

安裝后將自動生成 config/thinkcache.php 配置文件。

使用

<?php
namespace app\controller;

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

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

更多信息

更多信息參考 think-cache 文檔

贊助商