diff --git a/README.md b/README.md index ca685eb6..488c97b1 100644 --- a/README.md +++ b/README.md @@ -250,6 +250,7 @@ MSET (10 keys): 56022.41 requests per second, p50=0.463 msec * [HINCRBYFLOAT](https://sugardb.io/docs/commands/hash/hincrbyfloat) * [HKEYS](https://sugardb.io/docs/commands/hash/hkeys) * [HLEN](https://sugardb.io/docs/commands/hash/hlen) +* [HMGET](https://sugardb.io/docs/commands/hash/hmget) * [HRANDFIELD](https://sugardb.io/docs/commands/hash/hrandfield) * [HSET](https://sugardb.io/docs/commands/hash/hset) * [HSETNX](https://sugardb.io/docs/commands/hash/hsetnx) diff --git a/docs/docs/commands/hash/hmget.mdx b/docs/docs/commands/hash/hmget.mdx new file mode 100644 index 00000000..a3a29270 --- /dev/null +++ b/docs/docs/commands/hash/hmget.mdx @@ -0,0 +1,47 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# HMGET + +### Syntax +``` +HMGET key field [field ...] +``` + +### Module +hash + +### Categories +fast +hash +read + +### Description +Retrieves the value of each of the listed fields from the hash. + +### Examples + + + + Retrieve values from a hash: + ```go + db, err := sugardb.NewSugarDB() + if err != nil { + log.Fatal(err) + } + values, err := db.HMGet("key", "field1", "field2", "field3") + ``` + + + Retrieve values from a hash: + ``` + > HMGET key field1 field2 + ``` + + diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index 952244b4..9680d7a2 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -92,7 +92,7 @@ const config: Config = { label: "Documentation", }, { - href: "https://github.com//SugarDB", + href: "https://github.com/EchoVault/SugarDB", label: "GitHub", position: "right", }, diff --git a/docs/src/pages/index.mdx b/docs/src/pages/index.mdx index 457c8f90..c5ea6709 100644 --- a/docs/src/pages/index.mdx +++ b/docs/src/pages/index.mdx @@ -1,4 +1,4 @@ -
+
# Unleash the Power of Configurable, Distributed In-Memory Storage SugarDB is a highly configurable, distributed, in-memory data store and cache implemented in Go. It can be imported as a Go library or run as an independent service.