Method: EasyRedis::Methods#redis_key

Defined in:
lib/easy_redis/methods/methods.rb

#redis_keyObject



17
18
19
20
# File 'lib/easy_redis/methods/methods.rb', line 17

def redis_key
  raise NonExistentObjectError if self.new_record? && EasyRedis::Redis.raise_non_existent_object_error?
  @redis_key ||= "#{EasyRedis::Redis.namespace}:attributes:#{self.class.name}:#{self.id}"
end