Skip to content

Support for clearing Script Cache #2

Description

@AndersMad

Thanks for the contrib - I'm using this as a replacement as the prior use of the vanilla lib for the nice support of caching scripts etc.

I see that the project uses LruCache instead of System.Runtime.Caching, but the later got support for HostFileChangeMonitor/FileChangeMonitor - which could be nice to auto dispose the cached entry on the basis of the script(s) files changes. But since file change monitor is currently not an option - I'd like to suggest a method for clearing the cache manually; Would be much appreciated :) (its currently internal/private)..

E.g. (a thread safe) cal: ClearScript.Manager.ManagerScope().ClearCache()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions