Skip to content

cache expiration after download #54

Open
@sescobb27

Description

@sescobb27

hi, I would like to have a custom hook to get notified when a download is finished or have access to the caching layer from the downloader, something like the following example, then we can get the new content as fast as we can

const downloader = new Downloader({
  download(){
    downloadPromise.then(() => this.cache.expire(`${key}:${path}`))
  }
})

// OR

let server = new FastBootAppServer({
  ...,
  afterDownload: function () {
    return this.cache.expire(`${key}:${path}`)
  }
})

I think this expiration feature is not present yet, any thoughts? let me know if that sounds good to you and if I can help implementing this. thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions