Module: RedisModelExtension::RedisKey
- Defined in:
- lib/redis-model-extension/redis_key.rb
Overview
Redis Key
aliases for instance to class generators of redis keys
Instance Method Summary collapse
-
#alias_exists?(alias_name) ⇒ Boolean
pointer to alias_exists?.
-
#exists? ⇒ Boolean
pointer to exists?.
-
#redis_alias_key(alias_name) ⇒ Object
get redis key for instance alias.
-
#redis_key ⇒ Object
get redis key for instance.
Instance Method Details
#alias_exists?(alias_name) ⇒ Boolean
pointer to alias_exists?
114 115 116 |
# File 'lib/redis-model-extension/redis_key.rb', line 114 def alias_exists? alias_name self.class.alias_exists? alias_name, to_arg end |
#exists? ⇒ Boolean
pointer to exists?
109 110 111 |
# File 'lib/redis-model-extension/redis_key.rb', line 109 def exists? self.class.exists? to_arg end |
#redis_alias_key(alias_name) ⇒ Object
get redis key for instance alias
104 105 106 |
# File 'lib/redis-model-extension/redis_key.rb', line 104 def redis_alias_key alias_name self.class.generate_alias_key(alias_name, to_arg) end |
#redis_key ⇒ Object
get redis key for instance
99 100 101 |
# File 'lib/redis-model-extension/redis_key.rb', line 99 def redis_key self.class.generate_key(to_arg) end |