MCPcopy
hub / github.com/olric-data/olric / newEnv

Function newEnv

internal/dmap/env.go:37–47  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

35}
36
37func newEnv(ctx context.Context) *env {
38 if ctx == nil {
39 ctx = context.Background()
40 }
41 return &env{
42 ctx: ctx,
43 putConfig: &PutConfig{},
44 timestamp: time.Now().UnixNano(),
45 kind: partitions.PRIMARY,
46 }
47}

Callers 15

PutMethod · 0.85
putCommandHandlerMethod · 0.85
IncrMethod · 0.85
DecrMethod · 0.85
GetPutMethod · 0.85
IncrByFloatMethod · 0.85
LockMethod · 0.85
expireCommandHandlerMethod · 0.85
pexpireCommandHandlerMethod · 0.85

Calls

no outgoing calls

Tested by 1