Class: Redis

Inherits:
Object show all
Defined in:
lib/cosmos/utilities/store_autoload.rb

Instance Method Summary collapse

Instance Method Details

#xtrim_minid(key, minid, approximate: true, limit: nil) ⇒ Object



331
332
333
334
335
# File 'lib/cosmos/utilities/store_autoload.rb', line 331

def xtrim_minid(key, minid, approximate: true, limit: nil)
  args = [:xtrim, key, :MINID, (approximate ? '~' : nil), minid].compact
  args.concat([:LIMIT, limit]) if limit
  synchronize { |client| client.call(args) }
end