Redis commands – data persistence commands

Overview: Redis has 2 types of persistence: RDB – redis database file – point-in-time snapshot of the data AOF – append only file – logs every write operation – reconstruction of data set persistence can also be totally disabled BGSAVE:...

Redis commands – common commands

Overview: key names are case sensitive commands are NOT case sensitive TYPE: returns string with type of data stored in key: list, hash,… you can test only one specific key, asterisk (*) does not work if key does not exist, returns: none KEYS: shows keys based...

Redis commands – sets commands

Overview of set data type: Sets are unsorted collections of strings Although you add strings in some order it is not clear in which order you will get them back Commands overview: data manipulations: SADD SADD: add new string into...

Redis commands – lists commands

Lists are very powerful data type in Redis. Insert of values: LPUSH, LPUSHX, RPUSH, RPUSHX Change of existing value: LSET get existing values: LRANGE info about list: LLEN   LPUSH: prepends values (adds them at the beginning) in list if list does not exist it...

Redis commands – string values commands

Type String overview: String values are the simplest type of data in Redis. Name “String” does not necessary means text value. Redis “Strings” a “bit save” and therefore can store: text values numeric value – integer,...