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

Method SetJSON

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

Source from the content-addressed store, hash-verified

118}
119
120func (s *SharedState) SetJSON(key string, v any, ttl time.Duration) error {
121 return s.SetJSONWithContext(context.Background(), key, v, ttl)
122}
123
124func (s *SharedState) SetJSONWithContext(ctx context.Context, key string, v any, ttl time.Duration) error {
125 if err := s.ensureStorage(); err != nil {

Callers 1

Calls 1

SetJSONWithContextMethod · 0.95

Tested by 1