Method: Redis::Distributed#copy
- Defined in:
- lib/redis/distributed.rb
#copy(source, destination, **options) ⇒ Object
Copy a value from one key to another.
226 227 228 229 230 |
# File 'lib/redis/distributed.rb', line 226 def copy(source, destination, **) ensure_same_node(:copy, [source, destination]) do |node| node.copy(source, destination, **) end end |