AppendOnlyFile in Redis logs every write operation done to the redis database.
My Question is that when we delete data from the redis database, are those operations logged in the AppendOnlyFile ? And the data which is deleted from the database, is the record corresponding to that data in the AppendOnlyFile is also deleted?
I set a key,
127.0.0.1:6379 > set a apple
This will be logged in the AppendOnlyFile, suppose as "Log:set:a:apple"
Now, If I do,
127.0.0.1:6379 > del a
What will this do? Will a log corresponding to this be made, like "Log:del:a" ? And once we delete the key, will the log "Log:set:a:apple" also get deleted ?