maritz / nohm

node.js object relations mapper (orm) for redis
http://maritz.github.io/nohm/
MIT License
500 stars 64 forks source link

Count records function #115

Open 2012mjm opened 7 years ago

2012mjm commented 7 years ago

Please add count records function ;)

use SCARD redis command: https://redis.io/commands/scard

Examples:

redis>  SADD myset "Hello"
(integer) 1
redis>  SADD myset "World"
(integer) 1
redis>  SCARD myset
(integer) 2