Ghost/ghost/api-framework/lib
Naz 3cfe6d2cbb
Added cache support to api-framework
refs https://github.com/TryGhost/Toolbox/issues/522

- API-level response caching allows to cache responses bypassing the "pipeline" processing
- The main usecase for these caches is caching GET requests for expensive Content API requests
- To enable response caching add a "cache" key with a cache instance as a value, for example for posts public cache configuration can look like:
```
module.exports = {
    docName: 'posts',

    browse: {
        cache: postsPublicService.api.cache,
        options: [ ...
```
2023-02-23 13:07:04 +08:00
..
serializers Removed bluebird from api-framework module (#15685) 2022-10-31 19:30:18 +00:00
utils Extracted shared API framework to separate package 2022-08-11 17:44:59 +02:00
validators Removed bluebird from api-framework module (#15685) 2022-10-31 19:30:18 +00:00
api-framework.js Extracted shared API framework to separate package 2022-08-11 17:44:59 +02:00
frame.js Fixed some type issues with the api framework 2022-08-23 14:49:29 +01:00
headers.js Removed bluebird from api-framework module (#15685) 2022-10-31 19:30:18 +00:00
http.js Refactored api-framework to use optional chaining 2022-08-12 10:16:01 +02:00
pipeline.js Added cache support to api-framework 2023-02-23 13:07:04 +08:00