CheatSnip

Related

Add Geospatial Item

redis

Store geographic points

Set Key Value

redis

Set a string value for a given key in Redis.

Get Key Value

redis

Retrieve the string value stored at a key.

redis/geodist

Geospatial Distance

Calculate distance

geospatial
advanced

Command

GEODIST key member1 member2

Explanation

Returns the distance between two members in the geospatial index.

Examples

Distance in kilometers

GEODIST cities "Palermo" "Catania" km

More

Increment Value

redis

Increment the integer value of a key by one.

Set Hash Field

redis

Set a specific field in a hash to a given value.

Get Hash Field

redis

Retrieve the value of a specific field from a hash.

CheatSnip

Lightning-fast access to essential developer commands and code snippets. Search, copy, and master your favorite tools with our comprehensive cheat sheets.

Poorna Prakash

Quick Links

Git CommandsDockerNPMKubernetesYour Favorites

Legal

Terms & ConditionsPrivacy PolicyCookie Preferences

Company

About UsContact

© 2025 CheatSnip. All rights reserved.

Made with ❤️ for developers