EAS缓存配置

栏目:s-hr cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-17浏览:1

EAS缓存配置

    在开发过程中,可以配置缓存文件,降低对数据库读写次数,提升系统性能。

    缓存配置文件路径:/eas/server/properties/CacheCustomConfig_sHR.xml

    在shr节点下,增加节点配置,如“sany_sso”

image.webp

     代码示例:

    

import com.kingdee.bos.framework.cache.CustomCacheService;

private CustomCacheService cacheService = null;
private static final String CACHE_TASK = "shr.sany_sso";
//构造函数
this.cacheService = new CustomCacheService(CACHE_TASK);

cacheService.put(key, value);
Object value = cacheService.get(key);



EAS缓存配置

在开发过程中,可以配置缓存文件,降低对数据库读写次数,提升系统性能。 缓存配置文件路径:/eas/server/properties/CacheCustomCo...
点击下载文档
分享:
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息