REPSHEET.BLACKLIST- Blacklist an IP AddressREPSHEET.WHITELIST- Whitelist an IP AddressREPSHEET.MARK- Mark an IP AddressREPSHEET.STATUS- Get the Status of an IP AddressREPSHEET.VERSION- Get the Current Version
- Build the module by running
make - Run redis loading the module:
/path/to/redis-server --loadmodule ./repsheet.so
Now run redis-cli and try the commands:
127.0.0.1:6379> REPSHEET.BLACKLIST 1.1.1.1 manual
OK
127.0.0.1:6379> keys *
1) "1.1.1.1:repsheet:ip:blacklisted"
127.0.0.1:6379> get 1.1.1.1:repsheet:ip:blacklisted
"manual"
127.0.0.1:6379> REPSHEET.STATUS 1.1.1.1
BLACKLISTED