缓存使用原创
金蝶云社区-Cchen
Cchen
0人赞赏了该文章 112次浏览 未经作者许可,禁止转载编辑于2024年05月31日 14:10:41

 DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");

            String user = RequestContext.get().getUserId();

            cache.put(user+"purimportKey","wqyp_purimportdata");


DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");

        String userId = RequestContext.get().getUserId();

        String importKey = cache.get(userId + "importKey");


DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");

            String userId = RequestContext.get().getUserId();

            if (cache.contains(userId + "salimportKey")){

                cache.remove(userId + "salimportKey");

            }


赞 0