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

cn.bootx.platform.common.translate.domain.Cache Maven / Gradle / Ivy

The newest version!
package cn.bootx.platform.common.translate.domain;

import cn.bootx.platform.common.translate.cache.TranslationCacheLocal;
import lombok.Getter;
import lombok.Setter;

import java.util.HashSet;
import java.util.Set;

/**
 * 缓存信息
 */
@Getter
@Setter
public class Cache {

    /** 字典项 */
    private Set dictItems = new HashSet<>();

    /** 表项 */
    private Set tableItems = new HashSet<>();

    // 字典缓存

    // 表缓存

    public String getDictValue() {
        return null;
    }

    public void addDict(String dictCode, String code) {
        dictItems.add(new TranslationCacheLocal.DictItem(dictCode, code));
    }

    public void addTable(String table, String key, String param, String select) {
        tableItems.add(new TranslationCacheLocal.TableItem(table, key, param, select));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy