Method: Conflow::Redis::Identifier::ClassMethods#generate_id
- Defined in:
- lib/conflow/redis/identifier.rb
#generate_id ⇒ Integer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns next available ID.
54 55 56 |
# File 'lib/conflow/redis/identifier.rb', line 54 def generate_id Conflow.redis.with { |conn| conn.incr(counter_key) } end |