DBAtlas · Database operations atlas

BUSYKEY: BUSYKEY Target key name already exists

Redis

What does it mean?

RESTORE (or a similar command) failed because the target key already exists. By default Redis does not overwrite an existing key.

Why does it happen?

The key name being restored with RESTORE already exists in the database, previous data was not cleaned up, or multiple restore attempts to the same key.

How to fix it

If you want to overwrite the existing key, add the REPLACE option to RESTORE. Alternatively, delete the target key first (DEL mykey) or use a different key name. Check existence beforehand with EXISTS mykey.

Open in DBAtlas →

More from this engine