RpcLoadBalancer.LoadBalancer.AlgorithmCache (rpc_load_balancer v0.2.1)

Copy Markdown View Source

Summary

Functions

adapter_options()

cache_adapter()

cache_name()

child_spec(_)

delete(key)

get(key)

get_algorithm(load_balancer_name)

@spec get_algorithm(atom()) :: {:ok, module() | nil} | {:error, ErrorMessage.t()}

get_or_create(key, fnc)

put(key, ttl \\ nil, value)

put_algorithm(load_balancer_name, algorithm)

@spec put_algorithm(atom(), module()) :: :ok