Redis dont perform realtime physical delete when key become expired.
Instead, it perform something like passive delete. According to different expire delete strategy, it perform delete operation when needed. You can check it from here (https://www.programmersought.com/article/64021141500/)
But,if u tried to read a expired key, u wont get it.
CLICK HERE to find out more related problems solutions.