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

Remove use of Tilt::Cache #51

Open
jeremyevans opened this issue Apr 20, 2023 · 0 comments
Open

Remove use of Tilt::Cache #51

jeremyevans opened this issue Apr 20, 2023 · 0 comments

Comments

@jeremyevans
Copy link

I'm planning on deprecating Tilt::Cache in the next release of tilt (2.2.0), as it isn't used internally, isn't thread safe, and doesn't add any real value (faster to use a plain hash). grape-rabl should either copy the Tilt::Cache implementation, or switch to using a plain hash, or if you really need API compatibility for the #fetch method:

class Cache < Hash
  def fetch(*args)
    super(args) do
      self[args] = yield
    end
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants