鍍金池/ 問答/人工智能  PHP/ tp5使用redis,添加擴展指導(dǎo)

tp5使用redis,添加擴展指導(dǎo)

請問大神們tp5怎么封裝redis的擴展函數(shù)呢?因為默認(rèn)只有set和get的簡單函數(shù),指導(dǎo)下小弟。

回答
編輯回答
心上人
$cache = Cache::init();
// 獲取緩存對象句柄
$redis = $cache->handler();
$redis->hmset();
$redis->lpop();

2018年6月8日 09:06