Service for managing reactions using both a distributed cache and remote HTTP service.
This service provides methods to fetch, create, and delete reactions. It integrates with a distributed cache for efficient data retrieval and interacts with a remote service via HTTP for data persistence and updates.
Type parameters
F
The effect type (e.g., IO, SyncIO, etc.) that supports concurrency.
Value parameters
baseUri
The base URI of the remote reaction service.
client
The HTTP client for making requests to the remote reaction service.
distributedCache
The distributed cache service used for storing and retrieving reactions.
This method first checks the distributed cache for the requested reaction. If the reaction is not found in the cache, it fetches the data from the remote reaction service and updates the cache.
Value parameters
id
The unique identifier of the reaction to fetch.
Attributes
Returns
An effectful computation that yields the ReactionDetails for the given ID.