{"acl_categories":["@keyspace","@write","@slow"],"arguments":[{"display_text":"source","key_spec_index":0,"name":"source","type":"key"},{"display_text":"destination","key_spec_index":1,"name":"destination","type":"key"},{"display_text":"destination-db","name":"destination-db","optional":true,"token":"DB","type":"integer"},{"display_text":"replace","name":"replace","optional":true,"token":"REPLACE","type":"pure-token"}],"arity":-3,"categories":["docs","develop","stack","oss","rs","rc","oss","kubernetes","clients"],"command_flags":["write","denyoom"],"complexity":"O(N) worst case for collections, where N is the number of nested items. O(1) for string values.","description":"Copies the value of a key to a new key.","duplicateOf":"head:data-ai-metadata","group":"generic","key_specs":[{"RO":true,"access":true,"begin_search":{"spec":{"index":1},"type":"index"},"find_keys":{"spec":{"keystep":1,"lastkey":0,"limit":0},"type":"range"}},{"OW":true,"begin_search":{"spec":{"index":2},"type":"index"},"find_keys":{"spec":{"keystep":1,"lastkey":0,"limit":0},"type":"range"},"update":true}],"location":"body","since":"6.2.0","syntax_fmt":"COPY source destination [DBÂ destination-db] [REPLACE]","title":"COPY","tableOfContents":{"sections":[{"id":"required-arguments","title":"Required arguments"},{"id":"optional-arguments","title":"Optional arguments"},{"id":"examples","title":"Examples"},{"id":"redis-software-and-redis-cloud-compatibility","title":"Redis Software and Redis Cloud compatibility"},{"id":"return-information","title":"Return information"}]},"codeExamples":[]}