Sha256: f8988bcb8556ea10c6e0156071deab7d21209926e9520129c2d07a3835100cdb

Contents?: true

Size: 193 Bytes

Versions: 10

Compression:

Stored size: 193 Bytes

Contents

module Zhong
  module Util
    def safe_mget(keys)
      if keys.empty?
        {}
      else
        Zhong.redis.mapped_mget(*keys)
      end
    end

    module_function :safe_mget
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
zhong-0.3.0 lib/zhong/util.rb
zhong-0.2.4 lib/zhong/util.rb
zhong-0.2.3 lib/zhong/util.rb
zhong-0.2.2 lib/zhong/util.rb
zhong-0.2.1 lib/zhong/util.rb
zhong-0.2.0 lib/zhong/util.rb
zhong-0.1.9 lib/zhong/util.rb
zhong-0.1.8 lib/zhong/util.rb
zhong-0.1.7 lib/zhong/util.rb
zhong-0.1.6 lib/zhong/util.rb