You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Initialize a cache of size 3 that can hold payload of type V associated with key of type K// where:// K = string// V = stringc:= cache.NewCache[string, string](3)
Store a value in the cache
c.Set("key", "value")
Retreive a value from the cache
c.Get("key") // type *V or nil, if not found
Some other supported operations, that may be helpful