MOVE key db
相关命令
- DEL
 - DUMP
 - EXISTS
 - EXPIRE
 - EXPIREAT
 - KEYS
 - MIGRATE
 - MOVE
 - OBJECT
 - PERSIST
 - PEXPIRE
 - PEXPIREAT
 - PTTL
 - RANDOMKEY
 - RENAME
 - RENAMENX
 - RESTORE
 - SCAN
 - SORT
 - TTL
 - TYPE
 
始于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:
1ifkeywas moved.0ifkeywas not moved.
This website is open source software developed by Citrusbyte.
The Redis logo was designed by Carlos Prioglio. See more credits.
 
 