module RedisModel::Types::Integer

Internal: Methods needed for Integer type.

Public Instance Methods

to_i() click to toggle source

Public: Retrieves value stored in Redis key as Integer.

Returns Integer value stored in Redis key, nil if it does not exist.

# File lib/redis_model/types/integer.rb, line 10
def to_i
  get && get.to_i
end
Also aliased as: to_value
to_value()
Alias for: to_i