Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(redis): add expire option #55

Merged
merged 3 commits into from
Aug 12, 2021
Merged

Conversation

MaineK00n
Copy link
Collaborator

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

  • New feature (non-breaking change which adds functionality)

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.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES

Reference

@kotakanbe kotakanbe merged commit 36b7f56 into vulsio:master Aug 12, 2021
@MaineK00n MaineK00n deleted the add-expire-option branch August 12, 2021 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants