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

Raise exception on Cache.clear call with string argument #11904

Commits on Aug 15, 2013

  1. Raise exception on Cache.clear call with string

    Options argument from `clear(options)` in all bundled cache implementations
    wasn't used at all, so calling `clear('some_string')` just flushes cache
    without any warning. But this method can be easily confused with `delete`,
    exactly what happened on my project. So I think it's better to check
    if `options` is a hash, when it provided.
    flexoid committed Aug 15, 2013
    Configuration menu
    Copy the full SHA
    172b2d3 View commit details
    Browse the repository at this point in the history