Home>Article>Database> Can the key of redis be in Chinese?

Can the key of redis be in Chinese?

藏色散人
藏色散人 Original
2019-06-11 11:56:02 9619browse

Can the key of redis be in Chinese?

The Redis key command is used to manage redis keys. (Recommended: "Redis Video Tutorial")

The basic syntax of the Redis key command is as follows:

redis 127.0.0.1:6379> COMMAND KEY_NAME

The key of redis can be Chinese?

The key can be Chinese, but redis will serialize the key when storing it, and what is stored in redis is bytecode.

It is not recommended to use Chinese Key, as it will cause greater internal consumption and the possibility of garbled characters. Encoded byte storage, etc. all occupy different space.

The above is the detailed content of Can the key of redis be in Chinese?. For more information, please follow other related articles on the PHP Chinese website!

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