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
Copy file name to clipboardExpand all lines: readme.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,10 @@ cache.Delete("user:4")
97
97
`DeletePrefix` deletes all keys matching the provided prefix. Returns the number of keys removed.
98
98
99
99
### DeleteFunc
100
-
`DeleteFunc` deletes all items that the provded matches func evaluates to true. Returns the number of keys removed.
100
+
`DeleteFunc` deletes all items that the provided matches func evaluates to true. Returns the number of keys removed.
101
+
102
+
### ForEachFunc
103
+
`ForEachFunc` iterates through all keys and values in the map and passes them to the provided function. Iteration stops if the function returns false. Iteration order is random.
101
104
102
105
### Clear
103
106
`Clear` clears the cache. If the cache's gc is running, `Clear` waits for it to finish.
0 commit comments