convoyr icon indicating copy to clipboard operation
convoyr copied to clipboard

ReSTful Cache Plugin

Open yjaaidi opened this issue 4 years ago • 0 comments

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'}]}

yjaaidi avatar Nov 24 '20 12:11 yjaaidi