NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
## 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'); ```