Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache expiration after download #54

Open
sescobb27 opened this issue Apr 19, 2017 · 0 comments
Open

cache expiration after download #54

sescobb27 opened this issue Apr 19, 2017 · 0 comments

Comments

@sescobb27
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant