https://github.com/daanv2/go-cache
some sets / maps usable for large amount of storage of items concurrently.
https://github.com/daanv2/go-cache
cache caches go golang large
Last synced: 3 months ago
JSON representation
some sets / maps usable for large amount of storage of items concurrently.
- Host: GitHub
- URL: https://github.com/daanv2/go-cache
- Owner: DaanV2
- License: mit
- Created: 2024-02-10T18:33:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-26T17:08:48.000Z (4 months ago)
- Last Synced: 2025-01-26T17:27:39.973Z (4 months ago)
- Topics: cache, caches, go, golang, large
- Language: Go
- Homepage:
- Size: 112 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cache
[](https://github.com/DaanV2/go-cache/actions/workflows/pipeline.yaml)
[WIP] some sets / maps usable for large amount of storage of items concurrently.
```bash
go get github.com/daanv2/go-cache
``````go
col, err := sets.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)
}
```