ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## set ##### Description Set the string value in argument as value of the key. 设置值到KEY ##### Parameters *Key* *Value* *Timeout* (optional). Calling `<span class="calibre12">SETEX</span>` is preferred if you want a timeout. ##### Return value *Bool*`<span class="calibre12">TRUE</span>` if the command is successful. ##### Examples ``` <pre class="calibre9">$redis->set('key', 'value'); ```