module MeRedis::ZipValues::FutureUnzip
Constants
- COMMANDS
patch futures we need only when we are returning values, usual setters returns OK
Public Instance Methods
set_transformation(&block)
click to toggle source
# File lib/me_redis/zip_values.rb, line 6 def set_transformation(&block) return if @transformation_set @transformation_set = true @old_transformation = @transformation @transformation = -> (vl) { if @old_transformation @old_transformation.call(block.call(vl, self)) else block.call(vl, self) end } self end