1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-06-05 05:50:47 +00:00

Merge pull request #59 from AyoubEd/patch-1

Update redis.sh
This commit is contained in:
Julien Le Coupanec 2018-07-27 20:11:51 +01:00 committed by GitHub
commit 177ff62007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,7 @@ LINSERT key BEFORE|AFTER pivot value # insert an element before or after anothe
LLEN key # return the current length of the list
LPOP key # remove the first element from the list and returns it
LSET key index value # set the value of an element in a list by its index
LREM key number_of_occurrences value # delete occurrences of value if the list stored in key
LTRIM key start stop # trim a list to the specified range
RPOP key # remove the last element from the list and returns it
RPOPLPUSH source destination # remove the last element in a list, prepend it to another list and return it