MCPcopy Create free account
hub / github.com/dadgar/onecache / DefaultNodeConfig

Function DefaultNodeConfig

onecache/config.go:29–36  ·  view source on GitHub ↗

DefaultNodeConfig returns a reasonable default to use.

()

Source from the content-addressed store, hash-verified

27
28// DefaultNodeConfig returns a reasonable default to use.
29func DefaultNodeConfig() *NodeConfig {
30 return &NodeConfig{
31 Replicas: 2,
32 RpcPort: 11211,
33 SerfConfig: serf.DefaultConfig(),
34 MaxMemoryUsage: 1 << 30, // 1 GB
35 }
36}

Callers 1

buildTestConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected