import { Plugin } from'@root'constonGet= cachedData => {console.log(cachedData)/* Output: { id: 'item-id', name: 'item name' } */}Plugin.cache({ key:'my-cache-key', method:'GET',// can be ignored, as GET is the default method for cache callback: onGet})