You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The cache entry has not been truly deleted after expiration. this will cause the program to consume more memory to store invalid data.
To Reproduce
see code in https://github.com/kataras/iris/blob/main/cache/entry/entry.go
The program logic only determines whether the expiration time has been reached. If it expires, it will be reset to the new content on the next request. If no new requests arrive, expired data will continue to occupy memory
Screenshots
iris.Version
v12.2.5
The text was updated successfully, but these errors were encountered:
@cyjaysong thanks, I have re-factored the code, so you can read my solution, the commit contains new features as custom max age function and custom storage, maybe your issue is solved as well, if so you don't need to do anything at all :) Check: 28f49cd
Describe the bug
The cache entry has not been truly deleted after expiration. this will cause the program to consume more memory to store invalid data.
To Reproduce
see code in
https://github.com/kataras/iris/blob/main/cache/entry/entry.go
The program logic only determines whether the expiration time has been reached. If it expires, it will be reset to the new content on the next request. If no new requests arrive, expired data will continue to occupy memory
Screenshots
iris.Version
The text was updated successfully, but these errors were encountered: