io.serialized.client.aggregate.cache.StateCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serialized-client Show documentation
Show all versions of serialized-client Show documentation
Java Client for Serialized APIs
The newest version!
package io.serialized.client.aggregate.cache;
import java.util.Optional;
import java.util.UUID;
public interface StateCache {
void put(UUID aggregateId, VersionedState versionedState);
Optional> get(UUID aggregateId);
void invalidate(UUID aggregateId);
}