@faasjs/redis

License: MITopen in new windowNPM Stable Versionopen in new windowNPM Beta Versionopen in new window

FaasJS's Redis plugin.

Install

npm install @faasjs/redis

Modules

Classes

Type aliases

Functions

Type aliases

RedisConfig

Ƭ RedisConfig: Object

Type declaration

NameType
config?RedisOptions
name?string

Functions

get

get<TResult>(key): Promise<TResult>

Type parameters

NameType
TResultany

Parameters

NameType
keystring

Returns

Promise<TResult>


getJSON

getJSON<TResult>(key): Promise<TResult>

Type parameters

NameType
TResultany

Parameters

NameType
keystring

Returns

Promise<TResult>


query

query<TResult>(command, args): Promise<TResult>

Type parameters

NameType
TResultany

Parameters

NameType
commandstring
argsany[]

Returns

Promise<TResult>


set

set<TResult>(key, value, options?): Promise<TResult>

Type parameters

NameType
TResultvoid

Parameters

NameType
keystring
valueany
options?SET

Returns

Promise<TResult>


setJSON

setJSON<TResult>(key, value, options?): Promise<TResult>

Type parameters

NameType
TResultvoid

Parameters

NameType
keystring
valueany
options?SET

Returns

Promise<TResult>


useRedis

useRedis(config?): Redis & UseifyPlugin

Parameters

NameType
config?RedisConfig

Returns

Redis & UseifyPlugin