summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-structr/README.md
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-01-29 15:13:53 +0000
committerLibravatar GitHub <noreply@github.com>2024-01-29 15:13:53 +0000
commit81198fa2d09f07bb54ec28f41b20f275e88a3254 (patch)
tree14f0d24168e085c50c27f6dadbe1fd71e63faca1 /vendor/codeberg.org/gruf/go-structr/README.md
parent[bugfix] Fix Postgres emoji delete, emoji category change (#2570) (diff)
downloadgotosocial-81198fa2d09f07bb54ec28f41b20f275e88a3254.tar.xz
update go-structr v0.2.0 => v0.3.0 to fix possible hash collision issues (#2586)
Diffstat (limited to 'vendor/codeberg.org/gruf/go-structr/README.md')
-rw-r--r--vendor/codeberg.org/gruf/go-structr/README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/codeberg.org/gruf/go-structr/README.md b/vendor/codeberg.org/gruf/go-structr/README.md
index 125b20090..60f398085 100644
--- a/vendor/codeberg.org/gruf/go-structr/README.md
+++ b/vendor/codeberg.org/gruf/go-structr/README.md
@@ -2,6 +2,8 @@
A performant struct caching library with automated indexing by arbitrary combinations of fields, including support for negative results (errors!). An example use case is in database lookups.
+Under the hood, go-structr maintains a hashmap per index, where each hashmap is a hashmap keyed with either 32bit, 48bit or 64bit (default) hash checksum of the inputted raw index keys. The hash checksum size can be controlled by the following Go build-tags: `structr_32bit_hash` `structr_48bit_hash`
+
Some example code of how you can use `go-structr` in your application:
```golang
type Cached struct {