-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Milestone
Description
What do you guys think about something like
trait UpdatableStore[K,V] extends Store[K,V] {
def update(k : K)(fn : V => Option[V]) : Future[Option[V]]
}
Where the semantics are that this would be an atomic update (so this makes sense for redis, mysql, etc where there's a notion of transactions or locks... presumably not for memcache).
This would be a good primitive to build MergeableStore implementations on top of that don't require specific backends.
Metadata
Metadata
Assignees
Labels
No labels