Interface Store<K extends Comparable<K>,​V>

    • Method Detail

      • save

        Mono<Void> save​(K key,
                        V value)
        Stores a key value pair.
        Parameters:
        key - The key representing the value.
        value - The value.
        Returns:
        A mono which signals the completion of the storage of the pair.
      • save

        Mono<Void> save​(Publisher<Tuple2<K,​V>> entryStream)
        Stores key value pairs.
        Parameters:
        entryStream - A flux providing the key value pairs.
        Returns:
        A mono which signals the completion of the storage of the pairs.
      • delete

        Mono<Void> delete​(K id)
        Deletes a value associated with the provided id.
        Parameters:
        id - The id of the value to delete.
        Returns:
        A mono which signals the completion of the deletion of the value.
      • delete

        Mono<Void> delete​(Publisher<K> ids)
        Deletes the values associated with the provided ids.
        Parameters:
        ids - A stream of ids to delete values for.
        Returns:
        A mono which signals the completion of the deletion of the values.
      • deleteInRange

        Mono<Void> deleteInRange​(K start,
                                 K end)
        Deletes values within a range of ids.
        Parameters:
        start - The starting key (inclusive).
        end - The ending key (exclusive).
        Returns:
        A mono which signals the completion of the deletion of values.
      • deleteAll

        Mono<Void> deleteAll()
        Deletes all entries in the data source.
        Returns:
        A mono which signals the completion of the deletion of all values.
      • invalidate

        Mono<Void> invalidate()
        Invalidates the contents of the store. Once this is invoked, there is no longer a guarantee that the data in the store is reliable.
        Returns:
        A mono which signals the completion of the invalidation of all values.