| | |
| | | package com.ruoyi.common.core.redis;
|
| | |
|
| | | import java.util.Collection;
|
| | | import java.util.Iterator;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | | import java.util.Set;
|
| | | import java.util.concurrent.TimeUnit;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.data.redis.core.BoundSetOperations;
|
| | | import org.springframework.data.redis.core.HashOperations;
|
| | | import org.springframework.data.redis.core.RedisTemplate;
|
| | | import org.springframework.data.redis.core.ValueOperations;
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 删除Hash中的数据
|
| | | * |
| | | * @param key
|
| | | * @param hKey
|
| | | */
|
| | | public void delCacheMapValue(final String key, final String hKey)
|
| | | {
|
| | | HashOperations hashOperations = redisTemplate.opsForHash();
|
| | | hashOperations.delete(key, hKey);
|
| | | }
|
| | |
|
| | | /**
|
| | | * 获取多个Hash中的数据
|
| | | *
|
| | | * @param key Redis键
|