lib/mongo_auto_increment.rb
# Generate auto increment id
# params:
Generate auto increment id
params.
Generate auto increment id params .
def shift_id(ids, cache_key)
        return nil if ids.blank?
        first_id = ids.shift
        MongoAutoIncrement.cache_store.write(cache_key, ids)
        first_id
      end
def shift_id ( ids , cache_key ) return nil if ids . blank? first_id = ids . shift MongoAutoIncrement . cache_store . write ( cache_key , ids ) first_id end
Generate auto increment id
params:
Generate auto increment id params :
ids
cache_key