本文整理了Java中org.springframework.data.redis.core.RedisTemplate.unlink
方法的一些代码示例,展示了RedisTemplate.unlink
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RedisTemplate.unlink
方法的具体详情如下:
包路径:org.springframework.data.redis.core.RedisTemplate
类名称:RedisTemplate
方法名:unlink
暂无
代码示例来源:origin: spring-projects/spring-integration
@Override
protected void doRemoveAll(Collection<Object> ids) {
if (RedisUtils.isUnlinkAvailable(this.redisTemplate)) {
this.redisTemplate.unlink(ids);
}
else {
this.redisTemplate.delete(ids);
}
}
代码示例来源:origin: spring-projects/spring-integration
@Override
protected Object doRemove(Object id) {
Assert.notNull(id, "'id' must not be null");
Object removedObject = this.doRetrieve(id);
if (removedObject != null) {
if (RedisUtils.isUnlinkAvailable(this.redisTemplate)) {
this.redisTemplate.unlink(id);
}
else {
this.redisTemplate.delete(id);
}
}
return removedObject;
}
代码示例来源:origin: org.springframework.integration/spring-integration-redis
@Override
protected void doRemoveAll(Collection<Object> ids) {
if (RedisUtils.isUnlinkAvailable(this.redisTemplate)) {
this.redisTemplate.unlink(ids);
}
else {
this.redisTemplate.delete(ids);
}
}
代码示例来源:origin: org.springframework.integration/spring-integration-redis
@Override
protected Object doRemove(Object id) {
Assert.notNull(id, "'id' must not be null");
Object removedObject = this.doRetrieve(id);
if (removedObject != null) {
if (RedisUtils.isUnlinkAvailable(this.redisTemplate)) {
this.redisTemplate.unlink(id);
}
else {
this.redisTemplate.delete(id);
}
}
return removedObject;
}
内容来源于网络,如有侵权,请联系作者删除!