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

Method SetMsgPack

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

Source from the content-addressed store, hash-verified

142}
143
144func (s *SharedState) SetMsgPack(key string, v any, ttl time.Duration) error {
145 return s.SetMsgPackWithContext(context.Background(), key, v, ttl)
146}
147
148func (s *SharedState) SetMsgPackWithContext(ctx context.Context, key string, v any, ttl time.Duration) error {
149 if err := s.ensureStorage(); err != nil {

Calls 1

SetMsgPackWithContextMethod · 0.95