
com.fnklabs.draenei.orm.Cacheable Maven / Gradle / Ivy
package com.fnklabs.draenei.orm;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.Serializable;
/**
* Cacheable entity 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);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy