Ferricstore.Commands.CMS (ferricstore v0.3.4)

Copy Markdown View Source

Count-Min Sketch commands routed through Raft for replication.

Write commands (CMS.INITBYDIM, CMS.INITBYPROB, CMS.INCRBY, CMS.MERGE) route through Raft via store.prob_write. Read commands (CMS.QUERY, CMS.INFO) use stateless pread NIFs on local files.

Summary

Functions

handle(cmd, args, store)

@spec handle(binary(), [binary()], map()) :: term()

nif_delete(key, store)

@spec nif_delete(binary(), map()) :: :ok