本文整理了Java中redis.clients.jedis.Jedis.georadiusByMember()
方法的一些代码示例,展示了Jedis.georadiusByMember()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jedis.georadiusByMember()
方法的具体详情如下:
包路径:redis.clients.jedis.Jedis
类名称:Jedis
方法名:georadiusByMember
暂无
代码示例来源:origin: sohutv/cachecloud
@Override
public List<GeoRadiusResponse> execute(Jedis connection) {
return connection.georadiusByMember(key, member, radius, unit);
}
}.run(key);
代码示例来源:origin: sohutv/cachecloud
@Override
public List<GeoRadiusResponse> execute(Jedis connection) {
return connection.georadiusByMember(key, member, radius, unit, param);
}
}.run(key);
代码示例来源:origin: sohutv/cachecloud
@Override
public List<GeoRadiusResponse> execute(Jedis connection) {
return connection.georadiusByMember(key, member, radius, unit);
}
}.runBinary(key);
代码示例来源:origin: sohutv/cachecloud
@Override
public List<GeoRadiusResponse> execute(Jedis connection) {
return connection.georadiusByMember(key, member, radius, unit, param);
}
}.runBinary(key);
代码示例来源:origin: sohutv/cachecloud
@Override
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius,
GeoUnit unit, GeoRadiusParam param) {
Jedis j = getShard(key);
return j.georadiusByMember(key, member, radius, unit, param);
}
}
代码示例来源:origin: sohutv/cachecloud
@Override
public List<GeoRadiusResponse> georadiusByMember(byte[] key, byte[] member, double radius,
GeoUnit unit) {
Jedis j = getShard(key);
return j.georadiusByMember(key, member, radius, unit);
}
代码示例来源:origin: sohutv/cachecloud
@Override
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius,
GeoUnit unit) {
Jedis j = getShard(key);
return j.georadiusByMember(key, member, radius, unit);
}
代码示例来源:origin: sohutv/cachecloud
@Override
public List<GeoRadiusResponse> georadiusByMember(byte[] key, byte[] member, double radius,
GeoUnit unit, GeoRadiusParam param) {
Jedis j = getShard(key);
return j.georadiusByMember(key, member, radius, unit, param);
}
}
代码示例来源:origin: Netflix/conductor
@Override
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit) {
Jedis jedis = null;
try {
jedis = jedisPool.getResource();
return jedis.georadiusByMember(key, member, radius, unit);
} finally {
if (jedis != null)
jedis.close();
}
}
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public GeoResults<GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, Distance radius,
GeoRadiusCommandArgs args) {
Assert.notNull(key, "Key must not be null!");
Assert.notNull(member, "Member must not be null!");
Assert.notNull(radius, "Radius must not be null!");
Assert.notNull(args, "Args must not be null!");
GeoUnit geoUnit = JedisConverters.toGeoUnit(radius.getMetric());
Converter<List<redis.clients.jedis.GeoRadiusResponse>, GeoResults<GeoLocation<byte[]>>> converter = JedisConverters
.geoRadiusResponseToGeoResultsConverter(radius.getMetric());
redis.clients.jedis.params.GeoRadiusParam geoRadiusParam = JedisConverters.toGeoRadiusParam(args);
try {
if (isPipelined()) {
pipeline(connection.newJedisResult(
connection.getRequiredPipeline().georadiusByMember(key, member, radius.getValue(), geoUnit, geoRadiusParam),
converter));
return null;
}
if (isQueueing()) {
transaction(connection.newJedisResult(connection.getRequiredTransaction().georadiusByMember(key, member,
radius.getValue(), geoUnit, geoRadiusParam), converter));
return null;
}
return converter
.convert(connection.getJedis().georadiusByMember(key, member, radius.getValue(), geoUnit, geoRadiusParam));
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public GeoResults<GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, Distance radius) {
Assert.notNull(key, "Key must not be null!");
Assert.notNull(member, "Member must not be null!");
Assert.notNull(radius, "Radius must not be null!");
GeoUnit geoUnit = JedisConverters.toGeoUnit(radius.getMetric());
Converter<List<redis.clients.jedis.GeoRadiusResponse>, GeoResults<GeoLocation<byte[]>>> converter = JedisConverters
.geoRadiusResponseToGeoResultsConverter(radius.getMetric());
try {
if (isPipelined()) {
pipeline(connection.newJedisResult(
connection.getRequiredPipeline().georadiusByMember(key, member, radius.getValue(), geoUnit), converter));
return null;
}
if (isQueueing()) {
transaction(connection.newJedisResult(
connection.getRequiredTransaction().georadiusByMember(key, member, radius.getValue(), geoUnit), converter));
return null;
}
return converter.convert(connection.getJedis().georadiusByMember(key, member, radius.getValue(), geoUnit));
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis
@Override
public List<GeoRadiusResponse> georadiusByMember(byte[] key, byte[] member, double radius, GeoUnit unit, GeoRadiusParam param) {
String command = "georadiusByMember";
return instrumented(command, () -> delegated.georadiusByMember(key, member, radius, unit, param));
}
代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis
@Override
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param) {
String command = "georadiusByMember";
return instrumented(command, () -> delegated.georadiusByMember(key, member, radius, unit, param));
}
代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis
@Override
public List<GeoRadiusResponse> georadiusByMember(byte[] key, byte[] member, double radius, GeoUnit unit) {
String command = "georadiusByMember";
return instrumented(command, () -> delegated.georadiusByMember(key, member, radius, unit));
}
代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis
@Override
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit) {
String command = "georadiusByMember";
return instrumented(command, () -> delegated.georadiusByMember(key, member, radius, unit));
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public List<GeoRadiusResponse> georadiusByMember(String key,
String member,
double radius,
GeoUnit unit,
GeoRadiusParam param) {
Jedis jedis = getJedis();
try {
return jedis.georadiusByMember(key, member, radius, unit, param);
} finally {Streams.safeClose(jedis);}
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public List<GeoRadiusResponse> georadiusByMember(String key,
String member,
double radius,
GeoUnit unit) {
Jedis jedis = getJedis();
try {
return jedis.georadiusByMember(key, member, radius, unit);
} finally {Streams.safeClose(jedis);}
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public List<GeoRadiusResponse> georadiusByMember(byte[] key,
byte[] member,
double radius,
GeoUnit unit) {
Jedis jedis = getJedis();
try {
return jedis.georadiusByMember(key, member, radius, unit);
} finally {Streams.safeClose(jedis);}
}
代码示例来源:origin: com.netflix.conductor/conductor-redis-persistence
@Override
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit) {
Jedis jedis = null;
try {
jedis = jedisPool.getResource();
return jedis.georadiusByMember(key, member, radius, unit);
} finally {
if (jedis != null)
jedis.close();
}
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public List<GeoRadiusResponse> georadiusByMember(byte[] key,
byte[] member,
double radius,
GeoUnit unit,
GeoRadiusParam param) {
Jedis jedis = getJedis();
try {
return jedis.georadiusByMember(key, member, radius, unit, param);
} finally {Streams.safeClose(jedis);}
}
内容来源于网络,如有侵权,请联系作者删除!