memoryGetKeys helper function so that ACL can limit access to keys for MEMORY command

This commit is contained in:
Oran Agra
2020-02-05 09:42:49 +02:00
committed by antirez
parent 51c1a9f8fb
commit c82ccf0670
3 changed files with 18 additions and 1 deletions

View File

@ -817,7 +817,7 @@ struct redisCommand redisCommandTable[] = {
{"memory",memoryCommand,-2,
"random read-only",
0,NULL,0,0,0,0,0,0},
0,memoryGetKeys,0,0,0,0,0,0},
{"client",clientCommand,-2,
"admin no-script random @connection",