Mapper Write Key Value Repo
Write-only key-value repository adapter that applies type mapping via MapperRepo. Converts outer (From) key/value types to inner (To) types before delegating writes to to, and maps emitted flow values back from inner to outer types.
Parameters
The underlying WriteKeyValueRepo to delegate operations to
The MapperRepo providing bidirectional key/value type conversions
Type Parameters
The outer key type exposed by this repo
The outer value type exposed by this repo
The inner key type used by the underlying to repo
The inner value type used by the underlying to repo
Constructors
Properties
Provides a mapper for converting keys between inner and outer types.
This flow must emit data each time when data by Key has been removed with unset/unsetWithValues methods or in any other way
Provides a mapper for converting values between inner and outer types.
Functions
List overload of WriteKeyValueRepo.set accepting a list of pairs.
Vararg overload of WriteKeyValueRepo.set accepting pairs.
Single-entry overload of WriteKeyValueRepo.set.
Converts a key from the outer type to the inner type.
Converts a value from the outer type to the inner type.
Converts a value from the inner type to the outer type.
Vararg overload of WriteKeyValueRepo.unset.
Will unset as batch data with values from toUnset. Must pass the Keys which were successfully removed in repo to onValueRemoved
Vararg overload of WriteKeyValueRepo.unsetWithValues.
Wraps this WriteKeyValueRepo with a MapperRepo to expose a mapped WriteKeyValueRepo.
Wraps this WriteKeyValueRepo with inline conversion lambdas to expose a mapped WriteKeyValueRepo.