UCL-ARC / dirac-swift-api

Repository for the REST API side of the DiRAC-SWIFT project
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Add LRU cache for metadata and units endpoints #39

Closed harryjmoss closed 1 year ago

harryjmoss commented 1 year ago

Adds LRU cache for metadata and units objects. We explicitly don't want to cache masked or unmasked particle datasets.

This also makes async endpoints that call synchronous functions into synchronous endpoints, as per the FastAPI docs recommendations

Closes #31