search

Home  >  Q&A  >  body text

Redis使用多数据库的实践

Redis默认是支持16个数据库,序号分别从0到15,那么在实际应用中,需要用到多个不同序号的数据库吗?欢迎大家分享一下经验

大家讲道理大家讲道理2796 days ago592

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-24 09:12:19

    Usually just use one, there is no advantage in using more than one;
    If you want to operate the 2nd to 16th one, you need to select one more command first;
    If you really need to split the database, it is better to start multiple redis instances, each instance Use 1 library;

    reply
    0
  • PHP中文网

    PHP中文网2017-04-24 09:12:19

    Brother, how did you do it? Can you share it?

    reply
    0
  • Cancelreply