ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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 */ ``` ##