-
-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Lines 235 to 245 in f567a86
| if !ok || item.Expired() { | |
| item := newItem(key, val, opts...) | |
| c.cache.Set(key, item) | |
| return val, false | |
| } | |
| return item.Value, true | |
| } | |
| // DeleteExpired all expired items from the cache. |
GetOrSet doesn't respect expire setting and will not be removed even expired.
Metadata
Metadata
Assignees
Labels
No labels