How to delete a .txt file after a certain time? [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I have this .txt file that displays information but I want to delete itself after like 5 minutes or so. 回答1: Considering what you are doing, won't using memcached be a better option? You just store your ips as key=value pairs in memcached, with an expiry of 5 minutes. Thus your