We are building GET RESTFUL API using Tasks ,can we cache data?

We are building GET Restful API which gets data from DB which is static and won’t change .

Do we have cache mechanism which can be set at pipeline level?