Java Code Examples for org.springframework.data.redis.core.SetOperations#remove()
The following examples show how to use
org.springframework.data.redis.core.SetOperations#remove() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RedisSetServiceImpl.java From paascloud-master with Apache License 2.0 | 5 votes |
@Override public Long remove(String key, String... value) { SetOperations<String, String> setOps = rt.opsForSet(); Long result = setOps.remove(key, (Object) value); log.info("remove - 根据key移除元素, key={}, value={}, result={}", key, value, result); return result; }
Example 2
Source File: RedisService.java From JavaQuarkBBS with Apache License 2.0 | 2 votes |
/** * 删除Set缓存 * @param key * @param t */ public void deleteSet(String key,T t){ SetOperations<String,T> opsForSet = redisTemplate.opsForSet(); opsForSet.remove(key,t); }
Example 3
Source File: RedisService.java From JavaQuarkBBS with Apache License 2.0 | 2 votes |
/** * 删除Set缓存 * @param key * @param t */ public void deleteSet(String key,T t){ SetOperations<String,T> opsForSet = redisTemplate.opsForSet(); opsForSet.remove(key,t); }