🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 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'); ```