Close this store and release any resources.
Close this store and release any resources. It is undefined what happens if you merge after close
Returns the value JUST BEFORE the merge.
Returns the value JUST BEFORE the merge. If it is empty, it is like a zero. the key should hold: val (k,v) = kv result = get(k) key is set to: result.map(Semigroup.plus(_, Some(v)).getOrElse(v) after this.
merge a set of keys.
merge a set of keys.
The semigroup equivalent to the merge operation of this store
The semigroup equivalent to the merge operation of this store
MergeableStore instance that is backed by a ConcurrentHashMap This class is thread safe with a locking merge operation and thread safe put/get operations provided by the underlying ConcurrentHashMap There is no multi operation optimization so all multi operations use the default Store implementation.
This class is ideal for local testing of code that interacts with a MergeableStore[String,Long] such as RedisLongStore without the need to hit a remote database. Can also be used for data processing where you don't care about persistence beyond the running process.