walmartlabs / lacinia-pedestal

Expose Lacinia GraphQL as Pedestal endpoints
http://lacinia-pedestal.readthedocs.io/en/latest/
Other
200 stars 63 forks source link

Add a pluggable parsed query cache #122

Closed hlship closed 2 years ago

hlship commented 2 years ago

The cache is optional. When present, the cache uses the full query document and the operation name (often nil) as the cache key. When a parsed query is present in the cache, it is used - bypassing the call to parse-query. Otherwise, parsed-query is invoked and, if successful, the parsed query is stored into the cache for later use.

A simple LRU cache with a maximum storage size is implemented.