{"acl_categories":["@cms","@write","@fast"],"arguments":[{"name":"key","type":"key"},{"name":"width","type":"integer"},{"name":"depth","type":"integer"}],"categories":["docs","develop","stack","oss","rs","rc","oss","kubernetes","clients"],"complexity":"O(1)","description":"Initializes a Count-Min Sketch to dimensions specified by user","duplicateOf":"head:data-ai-metadata","group":"cms","location":"body","since":"2.0.0","syntax_fmt":"CMS.INITBYDIM key width depth","title":"CMS.INITBYDIM","tableOfContents":{"sections":[{"id":"required-arguments","title":"Required arguments"},{"id":"examples","title":"Examples"},{"id":"redis-software-and-redis-cloud-compatibility","title":"Redis Software and Redis Cloud compatibility"},{"id":"return-information","title":"Return information"}]},"codeExamples":[]}
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
client.cms.initByDim(
key: RedisArgument,
width: number, // Number of counters in each arraydepth: number// Number of counter arrays
) → SimpleStringReply<'OK'>// OK on success