Under redis, the database is identified by an integer index rather than a database name.
By default, a client connects to database 0.
The following parameters in the redis configuration file control the total number of databases:
/etc/redis/redis.conf
In the file, there is a configuration item databases = 16 // There are 16 databases by default
REmote DIctionary Server (Redis) is a key-value storage system written by Salvatore Sanfilippo .
Redis is an open source log-type Key-Value database written in ANSI C language, abides by the BSD protocol, supports the network, can be memory-based and persistent, and provides APIs in multiple languages.
It is often called a data structure server because values can be strings, hashes, lists, sets and sorted sets ) and other types.
For more Redis-related technical articles, please visit the Redis Tutorial column to learn!
The above is the detailed content of How many databases does redis have?. For more information, please follow other related articles on the PHP Chinese website!