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

me.redtea.carcadex.data.repo.impl.CacheRepo Maven / Gradle / Ivy

There is a newer version: 2.0.1-BETA
Show newest version
package me.redtea.carcadex.data.repo.impl;

import me.redtea.carcadex.data.repo.MutableRepo;

public interface CacheRepo extends MutableRepo {
    /**
     * Load from permanent memory to cache by key
     * @param k key of object
     */
    void loadToCache(K k);
    /**
     * Remove object from cache by key
     * (not removes from repo)
     * @param k key of object
     */
    void removeFromCache(K k);

    /**
     * Clear cache of repo
     */
    void clearCache();

    int cacheSize();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy