Interface DistributedSet
- All Known Implementing Classes:
DistributedRedisSet
public interface DistributedSet
Interface representing a distributed set for caching entities.
Provides methods for adding entities to the set and retrieving them.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Method Summary
-
Method Details
-
add
Adds an entity to the distributed set.- Type Parameters:
T- the type of the entity- Parameters:
entityClass- the class of the entitycacheKey- the cache key associated with the entityentity- the entity to add to the set
-
get
Retrieves an entity from the distributed set.- Type Parameters:
T- the type of the entity- Parameters:
entityClass- the class of the entitycacheKey- the cache key associated with the entity- Returns:
- an Optional containing the retrieved entity, or empty if not found
-