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: 14 days 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 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T19:19:02.000Z (over 1 year ago)
- Last Synced: 2025-11-20T12:23:26.815Z (7 months ago)
- Topics: cache, caches, go, golang, large
- Language: Go
- Homepage:
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
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)
}
```