MCPcopy
hub / github.com/gofiber/fiber / Set

Method Set

shared_state.go:76–78  ·  shared_state.go::SharedState.Set
(key string, val []byte, ttl time.Duration)

Source from the content-addressed store, hash-verified

74}
75
76func (s *SharedState) Set(key string, val []byte, ttl time.Duration) error {
77 return s.SetWithContext(context.Background(), key, val, ttl)
78}
79
80func (s *SharedState) SetWithContext(ctx context.Context, key string, val []byte, ttl time.Duration) error {
81 if err := s.ensureStorage(); err != nil {

Callers 1

Calls 1

SetWithContextMethod · 0.95

Tested by 1