Nebulex.Caching.KeyGenerator behaviour (Nebulex v2.1.0) View Source

Cache key generator. Used for creating a key based on the given module, function name and its arguments (the module and function name are used as context).

See the default implementation Nebulex.Caching.SimpleKeyGenerator.

Link to this section Summary

Callbacks

Generates a key for the given module, function_name, and its args.

Link to this section Callbacks

Link to this callback

generate(module, function_name, args)

View Source

Specs

generate(module(), function_name :: atom(), args :: [term()]) :: term()

Generates a key for the given module, function_name, and its args.