Published on July 23, 2017 by ProgrammingKnowledge

Redis Hashes are maps between string fields and string values, so they are the perfect data type to represent objects .

HDEL key field [field …]
Delete one or more hash fields
HEXISTS key field
Determine if a hash field exists
HGET key field
Get the value of a hash field
HGETALL key
Get all the fields and values in a hash
HINCRBY key field increment
Increment the integer value of a hash field by the given number
HINCRBYFLOAT key field increment
Increment the float value of a hash field by the given amount
HKEYS key
Get all the fields in a hash
HLEN key
Get the number of fields in a hash
HMGET key field [field …]
Get the values of all the given hash fields
HMSET key field value [field value …]
Set multiple hash fields to multiple values
HSET key field value
Set the string value of a hash field
HSETNX key field value
Set the value of a hash field, only if the field does not exist
HSTRLEN key field
Get the length of the value of a hash field
HVALS key
Get all the values in a hash
HSCAN key cursor [MATCH pattern] [COUNT count]
Incrementally iterate hash fields and associated values

————————-Follow——————-
My Website – www.codebind.com
My Blog – goo.gl/Nd2pFn
My Facebook Page – goo.gl/eLp2cQ
Google+ – goo.gl/lvC5FX
Twitter – twitter.com/ProgrammingKnow
Pinterest – goo.gl/kCInUp
Text Case Converter – goo.gl/pVpcwL
Epoch Timestamp Converter – goo.gl/Zedjo5
Decimal – Binary – Hexadecimal Converter – goo.gl/rkX3JE
8-bit Checksum Calculator – goo.gl/inxvIT

Leave a Reply

4 Comments on "Redis Tutorial for Beginners 7 – Redis Hashes"

Notify of
avatar

Hiff
Guest
Hiff
22 days 11 hours ago

I absolutely love your videos, made me like computers. Now I am a computer nerd and learning programming/coding (Java IOS, Java, IOS, etc).

Dino Zoe
Guest
Dino Zoe
26 days 9 hours ago

Please Make Kotlin Tutorial 🙂

ujjwaal bhardwaj
Guest
ujjwaal bhardwaj
26 days 23 hours ago

bhimashankar

ujjwaal bhardwaj
Guest
ujjwaal bhardwaj
26 days 23 hours ago

bhimashankar

wpDiscuz