企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
## lPop ##### *Description* Return and remove the first element of the list. 返回LIST顶部(左侧)的VALUE,并且从LIST中把该VALUE弹出。 ##### *Parameters* *key* ##### *Return value* *STRING* if command executed successfully *BOOL*`<span class="calibre12">FALSE</span>` in case of failure (empty list) 取得VALUE成功,返回TURE。如果是一个空LIST则返回FLASE。 ##### *Example* ``` <pre class="calibre9">$redis->rPush('key1', 'A'); $redis->rPush('key1', 'B'); $redis->rPush('key1', 'C'); /* key1 => [ 'A', 'B', 'C' ] */ $redis->lPop('key1'); /* key1 => [ 'B', 'C' ] */ ```