-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
RedisActiveRecord expire time #74
Comments
Hello , NaLLiFFuNT |
Hello @nailfor |
Hello @thiagotalma |
@nailfor It's because people do not want to download a parallel extension. They only download the official one. What you need to do is to rebase the master branch of that repository and open a PULL REQUEST to request that your modifications be incorporated into the official extension. |
@thiagotalma ok, but my extension incompatible with the official keypool, because I used SADD to create unique keys, not RPUSH |
Same question. Someone can help? |
@cebe |
its hard to implement this because it would require redis to support TTL on items in a list, so a pk can be deleted from the PK lookup. Afaik this is not supported. |
Of course это хард ту имплемент...
|
@nailfor it's better not to mix languages :) |
@samdark as you wish |
ActiveRecord expire
RedisActiveRecod does not have ability to be stored with some expire time.
What's expected?
Add method to RedisActiveRecod ttl() wich return time to live value in seconds. Every time when we will save or update model, we will apply expire command with this value to AR's keys. If ttl() method return false expire command doesn't have to be applied.
The text was updated successfully, but these errors were encountered: