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

Ability to set commands on the model's main hash #18

Open
Radagaisus opened this issue Jun 1, 2015 · 0 comments
Open

Ability to set commands on the model's main hash #18

Radagaisus opened this issue Jun 1, 2015 · 0 comments

Comments

@Radagaisus
Copy link
Owner

  • Ability to set commands on the model's main hash e.g. expire, ttl, etc.
  • The main hash stores the @str and @num attributes of the model.
  • We'll need a way to reference it. Options:
    • User(id).some_string_attribute.expire() - will expire the entire hash
    • User(id).main.expire() - use mainor another name to access the hash
    • User(id).expire() - add it directly to the model, though expire() here will only expire the hash and not all the model keys. It's possible for us to expire most of the model keys, but not dynamic keys.
    • User(id).command() - a slightly nicer @_commands.push []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant