Ferricstore.Commands.Cuckoo (ferricstore v0.3.3)

Copy Markdown View Source

Handles Redis-compatible Cuckoo filter commands.

Write commands (CF.RESERVE, CF.ADD, CF.ADDNX, CF.DEL) route through Raft via store.prob_write. Read commands (CF.EXISTS, CF.MEXISTS, CF.COUNT, CF.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