All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fnklabs.draenei.orm.Cacheable Maven / Gradle / Ivy

There is a newer version: 0.8.3
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy