Set implements the [Client.Set] interface method.
(key string, value any)
| 234 | |
| 235 | // Set implements the [Client.Set] interface method. |
| 236 | func (c *DefaultClient) Set(key string, value any) { |
| 237 | c.mu.Lock() |
| 238 | defer c.mu.Unlock() |
| 239 | |
| 240 | c.store[key] = value |
| 241 | } |
| 242 | |
| 243 | // Unset implements the [Client.Unset] interface method. |
| 244 | func (c *DefaultClient) Unset(key string) { |
no outgoing calls