View Source Cachex.Router.Local (Cachex v4.0.2)

Routing implementation for the local node.

This module acts as the base implementation for routing when not being used in a distributed cache. All actions are routed to the current node.

Summary

Functions

Retrieve the list of nodes from a local routing state.

Route a key to a node in a local routing state.

Functions

@spec nodes(state :: nil) :: [atom()]

Retrieve the list of nodes from a local routing state.

@spec route(state :: nil, key :: any()) :: atom()

Route a key to a node in a local routing state.