@@ -862,6 +862,7 @@ implement_commands! {
862
862
/// }
863
863
/// ```
864
864
#[ cfg( feature = "geospatial" ) ]
865
+ #[ cfg_attr( docsrs, doc( cfg( feature = "geospatial" ) ) ) ]
865
866
fn geo_add<K : ToRedisArgs , M : ToRedisArgs >( key: K , members: M ) {
866
867
cmd( "GEOADD" ) . arg( key) . arg( members)
867
868
}
@@ -898,6 +899,7 @@ implement_commands! {
898
899
/// }
899
900
/// ```
900
901
#[ cfg( feature = "geospatial" ) ]
902
+ #[ cfg_attr( docsrs, doc( cfg( feature = "geospatial" ) ) ) ]
901
903
fn geo_dist<K : ToRedisArgs , M1 : ToRedisArgs , M2 : ToRedisArgs >(
902
904
key: K ,
903
905
member1: M1 ,
@@ -931,6 +933,7 @@ implement_commands! {
931
933
/// }
932
934
/// ```
933
935
#[ cfg( feature = "geospatial" ) ]
936
+ #[ cfg_attr( docsrs, doc( cfg( feature = "geospatial" ) ) ) ]
934
937
fn geo_hash<K : ToRedisArgs , M : ToRedisArgs >( key: K , members: M ) {
935
938
cmd( "GEOHASH" ) . arg( key) . arg( members)
936
939
}
@@ -959,6 +962,7 @@ implement_commands! {
959
962
/// }
960
963
/// ```
961
964
#[ cfg( feature = "geospatial" ) ]
965
+ #[ cfg_attr( docsrs, doc( cfg( feature = "geospatial" ) ) ) ]
962
966
fn geo_pos<K : ToRedisArgs , M : ToRedisArgs >( key: K , members: M ) {
963
967
cmd( "GEOPOS" ) . arg( key) . arg( members)
964
968
}
@@ -983,6 +987,7 @@ implement_commands! {
983
987
/// }
984
988
/// ```
985
989
#[ cfg( feature = "geospatial" ) ]
990
+ #[ cfg_attr( docsrs, doc( cfg( feature = "geospatial" ) ) ) ]
986
991
fn geo_radius<K : ToRedisArgs >(
987
992
key: K ,
988
993
longitude: f64 ,
@@ -1003,6 +1008,7 @@ implement_commands! {
1003
1008
/// Retrieve members selected by distance with the center of `member`. The
1004
1009
/// member itself is always contained in the results.
1005
1010
#[ cfg( feature = "geospatial" ) ]
1011
+ #[ cfg_attr( docsrs, doc( cfg( feature = "geospatial" ) ) ) ]
1006
1012
fn geo_radius_by_member<K : ToRedisArgs , M : ToRedisArgs >(
1007
1013
key: K ,
1008
1014
member: M ,
0 commit comments