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

Method SetCBOR

shared_state.go:168–170  ·  view source on GitHub ↗
(key string, v any, ttl time.Duration)

Source from the content-addressed store, hash-verified

166}
167
168func (s *SharedState) SetCBOR(key string, v any, ttl time.Duration) error {
169 return s.SetCBORWithContext(context.Background(), key, v, ttl)
170}
171
172func (s *SharedState) SetCBORWithContext(ctx context.Context, key string, v any, ttl time.Duration) error {
173 if err := s.ensureStorage(); err != nil {

Callers 1

Calls 1

SetCBORWithContextMethod · 0.95

Tested by 1