mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-12-24 12:57:53 +08:00
48 lines
958 B
Plaintext
48 lines
958 B
Plaintext
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# HINCRBYFLOAT
|
|
|
|
### Syntax
|
|
```
|
|
HINCRBYFLOAT key field increment
|
|
```
|
|
|
|
### Module
|
|
<span className="acl-category">hash</span>
|
|
|
|
### Categories
|
|
<span className="acl-category">fast</span>
|
|
<span className="acl-category">hash</span>
|
|
<span className="acl-category">write</span>
|
|
|
|
### Description
|
|
Increment the hash value by the float increment.
|
|
|
|
### Examples
|
|
|
|
<Tabs
|
|
defaultValue="go"
|
|
values={[
|
|
{ label: 'Go (Embedded)', value: 'go', },
|
|
{ label: 'CLI', value: 'cli', },
|
|
]}
|
|
>
|
|
<TabItem value="go">
|
|
Increment the hash value by the float increment:
|
|
```go
|
|
vault, err := echovault.NewEchoVault()
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
newValue, err := vault.HIncrByFloat("key", "field", 7.75)
|
|
```
|
|
</TabItem>
|
|
<TabItem value="cli">
|
|
Increment the hash value by the float increment:
|
|
```
|
|
> HINCRBYFLOAT key field 7.75
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|