convoyr
convoyr copied to clipboard
ReSTful Cache Plugin
A specific cache plugin for ReSTful API, probably based on the current cache plugin could improve caching by understanding the semantics of the API.
Here are some examples:
GET /items => {items: [{id: '123', name: 'demo'}]}
GET /items/123 => cache hit => {id: '123', name: 'demo'}
(PATCH|PUT) /items/123 {name: 'updated demo'} => {id: '123', name: 'updated demo'} => update item in storage using response
GET /items => {items: [{id: '123', name: 'updated demo'}]}