/**
* 返回列表中指定區間內的元素
* */
public function lrange($key,$start,$end){
return $this->handler->lrange($key,$start,$end);
}
/**
* 在list左邊新增元素
* */
public function lpush($key,$value){
return $this->handler->lPush($key,$value);
}
/**
* 在list右邊新增元素
* */
public function rpush($key,$value){
return $this->handler->rPush($key,$value);
}
/**
* 返回并移除列表中的第一個元素
* */
public function lpop($key){
return $this->handler->lPop($key);
}
/**
* 返回并移除列表的最后一個元素。
* */
public function rpop($key){
return $this->handler->rPop($key);
}
到此這篇關于thinkphp5redis緩存新增方法的文章就介紹到這了,更多相關thinkphp5 redis緩存新增方法內容請搜索腳本之家以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持腳本之家!