AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
## info ##### *Description* Returns an associative array from REDIS that provides information about the server. Passing no arguments to INFO will call the standard REDIS INFO command, which returns information such as the following: 返回redis的相关系统信息,类似于PHP的PHPINFO();可以选择参数,按照选择的参数返回相应的信息,也可以不写参数,返回所有的信息。 - redis\_version - arch\_bits - uptime\_in\_seconds - uptime\_in\_days - connected\_clients - connected\_slaves - used\_memory - changes\_since\_last\_save - bgsave\_in\_progress - last\_save\_time - total\_connections\_received - total\_commands\_processed - role You can pass a variety of options to INFO (per the Redis documentation), which will modify what is returned. ##### *Parameters* *option*: The option to provide redis (e.g. "COMMANDSTATS", "CPU") ##### *Example* ``` <pre class="calibre16">$redis->info(); /* standard redis INFO command */ $redis->info("COMMANDSTATS"); /* Information on the commands that have been run (>=2.6 only) $redis->info("CPU"); /* just CPU information from Redis INFO */ ``` ##