Warning! The version you're viewing is not the latest. Go to the latest version
#include <lib/inc/drogon/HttpResponse.h> virtual void setExpiredTime(ssize_t expiredTime)=0
Set the expiration time of the response cache in memory. in seconds, 0 means always cache, negative means not cache, default is -1.