dicedb-dice
- Description:
Experience real-time data management with DiceDB, the open-source, redis-compliant, reactive cache. Its scalable and multithreaded architecture enhances modern hardware utilization, perfect for cutting-edge applications.
- Copyright:
- 2025 Eyevinn Technology AB
Methods
(async, static) createDicedbDiceInstance(context, body) → {DicedbDice}
- Description:
Create a new Dice DB instance
Example
import { Context } from '@osaas/client-core';
import { createDicedbDiceInstance } from '@osaas/client-services';
const ctx = new Context();
const body: DicedbDiceConfig = { name: 'myinstance', ... };
const instance = await createDicedbDiceInstance(ctx, body);
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
DicedbDiceConfig | Service instance configuration |
Returns:
- Service instance
- Type
- DicedbDice
(async, static) getDicedbDiceInstance(context, name) → {DicedbDice}
- Description:
Get a Dice DB instance
Example
import { Context } from '@osaas/client-core';
import { getDicedbDiceInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getDicedbDiceInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the dice to be retrieved |
Returns:
- Service instance
- Type
- DicedbDice
(async, static) removeDicedbDiceInstance(context, name)
- Description:
Remove a Dice DB instance
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the dice to be removed |