Home  >  Article  >  Backend Development  >  How to get all collection names in a certain library in redis?

How to get all collection names in a certain library in redis?

WBOY
WBOYOriginal
2016-08-20 09:04:041173browse

How to get all the collection names in a certain library in redis?

Reply content:

How to get all the collection names in a certain library in redis?

There is no such operation. You can only use KEYS to get all the keys first, and then use TYPE to determine whether each key is a set

Found, you can get it by using the scan 0 command

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn