Categorygithub.com/daanv2/go-cache
repository
0.0.1
Repository: https://github.com/daanv2/go-cache.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Cache

[WIP] some cache usable for large amount of storage of items

col, err := large.NewBuckettedSet[*test_util.TestItem](size*10, test_util.Hasher())
require.NoError(t, err)

items := test_util.Generate(int(size))
test_util.Shuffle(items)

for _, item := range items {
	v, ok := col.GetOrAdd(item)
	require.True(t, ok)
	require.Equal(t, v, item)
}