Last active
August 31, 2016 17:17
-
-
Save edivandecastro/6c3e66d8cb4525be3215e227dd88e8c8 to your computer and use it in GitHub Desktop.
REDIS COMANDO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Listar as chaves que começam com redis_user_permission | |
KEYS redis_user_permission* | |
# Listar um determinado número de elementos de uma lista (Somente para valores que sejam lista) | |
LRANGE redis_user_permission:1:engines 0 9 | |
# Obtem o valor da chave informada (Somente para valores que sejam string) | |
GET redis_user_permission:1:user_id | |
# Apaga um chave no Redis | |
DEL nome_da_chave | |
Ex. DEL redis_user_permission:1:engines |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment