| | |
| | | Object cacheObj = SpringUtils.getBean(RedisCache.class).getCacheObject(getCacheKey(key));
|
| | | if (StringUtils.isNotNull(cacheObj))
|
| | | {
|
| | | List<SysDictData> dictDatas = StringUtils.cast(cacheObj);
|
| | | return dictDatas;
|
| | | return StringUtils.cast(cacheObj);
|
| | | }
|
| | | return null;
|
| | | }
|
| | |
| | | {
|
| | | if (value.equals(dict.getDictValue()))
|
| | | {
|
| | | propertyString.append(dict.getDictLabel() + separator);
|
| | | propertyString.append(dict.getDictLabel()).append(separator);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | if (label.equals(dict.getDictLabel()))
|
| | | {
|
| | | propertyString.append(dict.getDictValue() + separator);
|
| | | propertyString.append(dict.getDictValue()).append(separator);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 删除指定字典缓存
|
| | | * |
| | | * @param key 字典键
|
| | | */
|
| | | public static void removeDictCache(String key)
|
| | | {
|
| | | SpringUtils.getBean(RedisCache.class).deleteObject(getCacheKey(key));
|
| | | }
|
| | |
|
| | | /**
|
| | | * 清空字典缓存
|
| | | */
|
| | | public static void clearDictCache()
|