Module Hub Beta


key error probability

Initializes a sketch with a maximum error at a given probability.

error and probability should be given as doubles. For example, to specify an error of at most %0.01 at probability of %0.01, use CMS.INITBYERR key 0.001 0.001.

Return Value

Simple string: “OK”.


redis> CMS.INITBYERR counter 0.001 0.001

© 2017 Redis Labs, Inc. All rights reserved.