Constructors
CMSInfocmsInfoWidth :: IntegerNumber of counters in each array row.
cmsInfoDepth :: IntegerNumber of counter array rows.
cmsInfoCount :: IntegerTotal count added to the sketch.
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Modulehedis-0.16.4Haskell2010
CMSInfocmsInfoWidth :: IntegerNumber of counters in each array row.
cmsInfoDepth :: IntegerNumber of counter array rows.
cmsInfoCount :: IntegerTotal count added to the sketch.
CMSMergeUnweighted (NonEmpty ByteString)Merge the given source sketches using the default weight of 1.
CMSMergeWeighted (NonEmpty (ByteString, Integer))Merge the given source sketches using an explicit weight for each source.
Eq CMSMergeOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.CmsShow CMSMergeOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Cmscmsincrby :: RedisCtx m f=> ByteStringKey of the Count-Min Sketch.
-> NonEmpty (ByteString, Integer)Item and increment pairs.
-> m (f [Integer])Increases the count of one or more items by increment (https://redis.io/commands/cms.incrby).
O(n) where n is the number of items
Since RedisBloom 2.0.0
cmsinitbydim :: RedisCtx m f=> ByteStringKey of the Count-Min Sketch to create.
-> IntegerNumber of counters in each row.
-> IntegerNumber of counter rows.
-> m (f Status)Initializes a Count-Min Sketch to dimensions specified by user (https://redis.io/commands/cms.initbydim).
O(1)
Since RedisBloom 2.0.0
cmsinitbyprob :: RedisCtx m f=> ByteStringKey of the Count-Min Sketch to create.
-> DoubleError factor.
-> DoubleProbability of the error factor.
-> m (f Status)Initializes a Count-Min Sketch to accommodate requested tolerances (https://redis.io/commands/cms.initbyprob).
O(1)
Since RedisBloom 2.0.0
cmsmerge :: RedisCtx m f=> ByteStringDestination sketch key.
-> NonEmpty ByteStringSource sketch keys.
-> m (f Status)Merges several sketches into one sketch (https://redis.io/commands/cms.merge).
Source sketches are merged with the default weight of 1.
O(n) where n is the number of sketches
Since RedisBloom 2.0.0
cmsmergeOpts :: RedisCtx m f=> ByteStringDestination sketch key.
-> CMSMergeOptsSource sketches with optional weights.
-> m (f Status)Merges several sketches into one sketch (https://redis.io/commands/cms.merge).
O(n) where n is the number of sketches
Since RedisBloom 2.0.0
cmsmergeWeighted :: RedisCtx m f=> ByteStringDestination sketch key.
-> NonEmpty (ByteString, Integer)Source sketch keys paired with weights.
-> m (f Status)Merges several sketches into one sketch (https://redis.io/commands/cms.merge).
O(n) where n is the number of sketches
Since RedisBloom 2.0.0
cmsquery :: RedisCtx m f=> ByteStringKey of the Count-Min Sketch.
-> NonEmpty ByteStringItems to query.
-> m (f [Integer])Returns the count for one or more items in a sketch (https://redis.io/commands/cms.query).
O(n) where n is the number of items
Since RedisBloom 2.0.0