Skip to content

With what did I merge?

Choose a tag to compare

@johnynek johnynek released this 25 Oct 22:37
· 473 commits to develop since this release

The main feature here is that merge returns the value just before the merge took place (which enables a lot of combinators), and Mergeable store only requires a Semigroup. This means you can, for instance, implement swap using a Mergeable store and the Semigroup: x + y = y. Since we get the value before, this Semigroup would make merge return x, but set the store to y. Similarly, merge with the Semigroup x + y = x means that merge is get. In this way, we can see that a store that gives general merges with any Semigroup is strictly more powerful than a get/put-type store.

This change paves the way for new https://github.com/twitter/summingbird features.

  • Read from two stores concurrently: #158
  • Merge returns the value before: #163
  • Mergeable uses Semigroup (swap store is possible): #165
  • Better sorted set support in redis: #152
  • Move from java Closeable to twitter.util.Closable (Future[Unit] return)