Method: SimpleRedisOrm::Helpers::CoreCommands#read

Defined in:
lib/simple-redis-orm/helpers/core_commands.rb

#readObject



30
31
32
33
34
35
36
37
# File 'lib/simple-redis-orm/helpers/core_commands.rb', line 30

def read
  type = redis.type key
  return if type.nil?

  return read_hash if type == 'hash'

  read_value
end