Sha256: 7c8109c07e829ad98a98153217ad93e65cd5697bd57355bb1a98b9b739e56893
Contents?: true
Size: 220 Bytes
Versions: 1
Compression:
Stored size: 220 Bytes
Contents
module Redisrank class Scope include Database def initialize(name) @name = name.to_s end def to_s @name end def next_id db.incr("#{@name}#{KEY_NEXT_ID}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redisrank-0.1.0 | lib/redisrank/scope.rb |