-
Notifications
You must be signed in to change notification settings - Fork 0
1.1.2 Cacheable
Anders Mikkelsen edited this page Dec 15, 2017
·
2 revisions
This is a non-implement interface that creates a cache identifier, that is overrideable if you have a class define two separate logical components. i.e. a Comment class that doubles as a Reply.
public interface Cacheable {
@DynamoDBIgnore
@JsonIgnore
default String getCachePartitionKey() {
return getClass().getSimpleName();
}
}