This library will allow you to perform atomic diffs, patches and merges on Redis strings.
Alex McHale
gem "redis-diff_match_patch", "~> 1.1.1"