We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Imagine a base class called service
class Service < ActiveRecord::Base include Redis::Objects lock :mylock, :expiration => 15.minutes, :timeout => 10.seconds end
And two subclasses Service 1
class Service1 < Service end
and Service 2
class Service2 < Service end
Now you can call
Service.first.mylock_lock.lock.do sleep 60 end
and when you check the redis lock object you will see a 1 instead of a timestamp. Any idea why this is not working as expected?
Thanks!
The text was updated successfully, but these errors were encountered:
Sorry for my delay. Can you see if manually overriding the redis_prefix works?
redis_prefix
class Service2 < Service self.redis_prefix = 'service2' end
Sorry, something went wrong.
CC @tmsrjs seems like this one may either be a complex issue, or not a bug at all.
No branches or pull requests
Imagine a base class called service
And two subclasses Service 1
and Service 2
Now you can call
and when you check the redis lock object you will see a 1 instead of a timestamp. Any idea why this is not working as expected?
Thanks!
The text was updated successfully, but these errors were encountered: