vulsio / go-exploitdb

Tool for searching Exploits from Exploit Databases, etc.
MIT License
249 stars 56 forks source link

feat(redis): add expire option #55

Closed MaineK00n closed 3 years ago

MaineK00n commented 3 years ago

What did you implement:

Unlike RDBs, Redis does not lose old data. For users who do not want to be affected by old data remaining, it is possible to set a timeout deadline for keys using the Redis EXPIRE command.

Type of change

How Has This Been Tested?

$ redis-cli -p 6379
127.0.0.1:6379> TTL "EXPLOIT#E#44513"
(integer) 70
127.0.0.1:6379> TTL "EXPLOIT#C#CVE-2006-5673"
(integer) 60
127.0.0.1:6379> keys EXPLOIT#*
(empty array)

Checklist:

You don't have to satisfy all of the following.

Is this ready for review?: YES

Reference