com.fnklabs.draenei.orm.Cacheable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fnklabs-draenei Show documentation
Show all versions of fnklabs-draenei Show documentation
ORM for Cassandra but with distributed cache and analytics utils from package
package com.fnklabs.draenei.orm;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.Serializable;
/**
* Entity Cacheable interface
*/
public interface Cacheable extends Serializable {
/**
* Get caching key
*
* @return Entity cache ID
*/
@Nullable
Long getCacheKey();
/**
* Set entity cache id
*
* @param id Entity cache id
*/
void setCacheKey(@NotNull Long id);
}