修改本页

Redis 命令 客户端 文档 社区 下载 问题 支持 许可

MOVE key db

相关命令

始于1.0.0可用。

时间复杂度: O(1)

Move key from the currently selected database (see SELECT) to the specified destination database. When key already exists in the destination database, or it does not exist in the source database, it does nothing. It is possible to use MOVE as a locking primitive because of this.

返回值

Integer reply, specifically:

  • 1 if key was moved.
  • 0 if key was not moved.

Comments powered by Disqus

This website is open source software developed by Citrusbyte.

The Redis logo was designed by Carlos Prioglio. See more credits.

Sponsored by Redis Support