Skip to content


expires_in issue at Rails.cache.increment #346

maxguzenski opened this Issue · 0 comments

1 participant


I've a strange issue, sometime it works, sometimes not, example:

    time_to_expire = ( -
    limit                = 50

    if Rails.cache.increment(:"user:#{}:messages:count", 1, {:expires_in => time_to_expire}) > limit
      raise"Without limit!", :limit_to, type)

I have some users with 3 days cache without reset its increment key...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.