API Reference
Resources
Redis
A cloud redis db.
Initializers
bring ex;
new ex.Redis();
Name | Type | Description |
---|
Methods
Inflight Methods
Name | Description |
---|---|
del | Removes the specified key. |
get | Get value at given key. |
hget | Returns the value associated with field in the hash stored at key. |
hset | Sets the specified field to respective value in the hash stored at key. |
sadd | Add the specified members to the set stored at key. |
set | Set key value pair. |
smembers | Returns all the members of the set value stored at key. |
url | Get url of redis server. |
del
inflight del(key: str): num
Removes the specified key.
key
Required
- Type: str
the key.
get
inflight get(key: str): str?
Get value at given key.
key
Required
- Type: str
the key to get.
hget
inflight hget(key: str, field: str): str?
Returns the value associated with field in the hash stored at key.
key
Required
- Type: str
the key.
field
Required
- Type: str
the field at given key.
hset
inflight hset(key: str, field: str, value: str): num
Sets the specified field to respective value in the hash stored at key.
key
Required
- Type: str
key to set.
field
Required
- Type: str
field in key to set.
value
Required
- Type: str
value to set at field in key.
sadd
inflight sadd(key: str, value: str): num
Add the specified members to the set stored at key.
key
Required
- Type: str
the key.
value
Required
- Type: str
the value to add to the set at given key.
set
inflight set(key: str, value: str): void
Set key value pair.
key
Required
- Type: str
the key to set.
value
Required
- Type: str
the value to store at given key.
smembers
inflight smembers(key: str): MutArray<str>
Returns all the members of the set value stored at key.
key
Required
- Type: str
the key.
url
inflight url(): str
Get url of redis server.
Static Functions
Name | Description |
---|---|
onLiftType | A hook called by the Wing compiler once for each inflight host that needs to use this type inflight. |
onLiftType
bring ex;
ex.Redis.onLiftType(host: IInflightHost, ops: MutArray<str>);
A hook called by the Wing compiler once for each inflight host that needs to use this type inflight.
The list of requested inflight methods
needed by the inflight host are given by ops
.
This method is commonly used for adding permissions, environment variables, or other capabilities to the inflight host.
host
Required
- Type: IInflightHost
ops
Required
- Type: MutArray<str>
Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
node
Required
node: Node;
- Type: constructs.Node
The tree node.
Classes
RedisClientBase
- Implements: IRedisClient
Base class for Redis
Client.
Initializers
bring ex;
new ex.RedisClientBase();
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
del | Removes the specified key. |
get | Get value at given key. |
hget | Returns the value associated with field in the hash stored at key. |
hset | Sets the specified field to respective value in the hash stored at key. |
sadd | Add the specified members to the set stored at key. |
set | Set key value pair. |
smembers | Returns all the members of the set value stored at key. |
url | Get url of redis server. |
del
del(key: str): num
Removes the specified key.
key
Required
- Type: str
get
get(key: str): str?
Get value at given key.
key
Required
- Type: str
hget
hget(key: str, field: str): str?
Returns the value associated with field in the hash stored at key.
key
Required
- Type: str
field
Required
- Type: str
hset
hset(key: str, field: str, value: str): num
Sets the specified field to respective value in the hash stored at key.
key
Required
- Type: str
field
Required
- Type: str
value
Required
- Type: str
sadd
sadd(key: str, value: str): num
Add the specified members to the set stored at key.
key
Required
- Type: str
value
Required
- Type: str
set
set(key: str, value: str): void
Set key value pair.
key
Required
- Type: str
value
Required
- Type: str
smembers
smembers(key: str): MutArray<str>
Returns all the members of the set value stored at key.
key
Required
- Type: str
url
url(): str
Get url of redis server.