💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## setOption ##### *Description* Set client option. 设置客户端的选项 ##### *Parameters* *parameter name* *parameter value* ##### *Return value* *BOOL*: `<span class="calibre12">TRUE</span>` on success, `<span class="calibre12">FALSE</span>` on error. ##### *Example* ``` <pre class="calibre9">$redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_NONE); // don't serialize data $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP); // use built-in serialize/unserialize $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_IGBINARY); // use igBinary serialize/unserialize $redis->setOption(Redis::OPT_PREFIX, 'myAppName:'); // use custom prefix on all keys ```