How to Memoize/Cache Lambda Function

I am assumng this is how you set cache headers, please correct me if am wrong

callback(null,{
			statusCode: 200,
			headers: {'Cache-Control': 'public, s-maxage=1800'},
			body: JSON.stringify(data)
		});