-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Issue/dataredis 438 - Add support for geo commands #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
DefaultHashOperation does not return value
# Conflicts: # src/main/java/org/springframework/data/redis/core/BoundHashOperations.java # src/main/java/org/springframework/data/redis/core/HashOperations.java # src/test/java/org/springframework/data/redis/core/DefaultHashOperationsTests.java
…, geoDist, geoPos and geoHash
…, geoDist, geoPos and geoHash
thanks @nsdiv for all the hard work. We're in the home stretch for the Hopper release. This one is scheduled for the next release train. If you have not done so yet please sign the CLA and add your confirmation number either to this PR or DATAREDIS-438. BTW if you want to bump the Redis version for CI build just alter |
@christophstrobl I see the following tests are failing, however I'm at a loss as to why that is happening. I can see this error happening earlier versions of the code as well, on my local. The keys from getConfig are `Tests run: 186, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.669 sec <<< FAILURE! - in org.springframework.data.redis.connection.jedis.JedisClusterConnectionTests Expected: is <24> Expected: is <24> |
@nsdiv The test error is related to the new Redis version.
and Redis
I'd propose to change the assertion to |
…hile on 3.2.0-rc3 returns 6. applying mp911de's suggestion to get a mod of 6
Thanks for the comment @mp911de . The tests pass now. Looking forward to getting this into a release. |
CLA - 169220160326121428, Name - Ninad Divadkar |
Hi @christophstrobl Just wanted to make sure you're aware of this pull request. |
thanks @nsdiv - yes I am 😄 |
Original Pulll Request: #187 CLA: 169220160326121428 (Ninad Divadkar)
RedisGeoCommands now take and return Spring Data domain types like Distance and GeoResults. Updated JavaDoc and Reference documentation. Added and updated author and license headers. Fixed minor formatting and code style issues. Original Pulll Request: #187
RedisGeoCommands now take and return Spring Data domain types like Distance and GeoResults. Updated JavaDoc and Reference documentation. Added and updated author and license headers. Fixed minor formatting and code style issues. Original Pulll Request: #187
RedisGeoCommands now take and return Spring Data domain types like Distance and GeoResults. Updated JavaDoc and Reference documentation. Added and updated author and license headers. Fixed minor formatting and code style issues. Original Pulll Request: #187
RedisGeoCommands now take and return Spring Data domain types like Distance and GeoResults. Updated JavaDoc and Reference documentation. Added and updated author and license headers. Fixed minor formatting and code style issues. Original Pulll Request: #187
Original Pulll Request: #187 CLA: 169220160326121428 (Ninad Divadkar)
RedisGeoCommands now take and return Spring Data domain types like Distance and GeoResults. Updated JavaDoc and Reference documentation. Added and updated author and license headers. Fixed minor formatting and code style issues. Original Pulll Request: #187
RedisGeoCommands now take and return Spring Data domain types like Distance and GeoResults. Updated JavaDoc and Reference documentation. Added and updated author and license headers. Fixed minor formatting and code style issues. Original Pulll Request: #187
Added the following classes: RedisGeoCommands, GeoOperations, DefaultGeoOperations, BoundGeoOperations, DefaultBoundGeoOperations
Added the following methods to RedisGeoCommands
Long geoAdd(byte[] key, double longitude, double latitude, byte[] member);
Long geoAdd(byte[] key, Map<byte[], GeoCoordinate> memberCoordinateMap);
Double geoDist(byte[] key, byte[] member1, byte[] member2);
Double geoDist(byte[] key, byte[] member1, byte[] member2, GeoUnit unit);
List<byte[]> geoHash(byte[] key, byte[]... members);
List geoPos(byte[] key, byte[]... members);
List georadius(byte[] key, double longitude, double latitude,
double radius, GeoUnit unit);
List georadius(byte[] key, double longitude, double latitude,
double radius, GeoUnit unit, GeoRadiusParam param);
List georadiusByMember(byte[] key, byte[] member, double radius,
GeoUnit unit);
List georadiusByMember(byte[] key, byte[] member, double radius,
GeoUnit unit, GeoRadiusParam param);
Long geoRemove(byte[] key, byte[]... values);