0

Consider my redis DB has the following keys available,.

"aaa",
"bbb",
"ccc",
"sess:aaa",
"sess:bbb"

Now i am using

redis.keys('*', function (error, result) {
});

to get all keys, but what i need is only aaa, bbb, ccc, by avoiding sessprefix.

I i need only sessappended data means i can use

redis.keys('sess:*', function (error, result) {
    });

But how can i retrieve without that?

James Z
  • 12,209
  • 10
  • 24
  • 44
Subburaj
  • 5,114
  • 10
  • 44
  • 87

1 Answers1

0

Do you want get all keys except keys with 'sess:*' prefix? if yes, see how to get keys which does not match a particular pattern in redis?

Anonym
  • 97
  • 5