redis-切换数据库

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010675669/article/details/90056490

1.redis 默认有16个数据库,index(值范围:0~15),默认index=0的数据库 。

2.切换数据库命令为:select index。ps:select 1,使用数据库1.

猜你喜欢

转载自blog.csdn.net/u010675669/article/details/90056490