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



232
233
234
235
236
# File 'lib/cosmos/utilities/store_autoload.rb', line 232

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