@faasjs/redis
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.2-beta.394 • Public • Published

    @faasjs/redis

    License: MIT NPM Stable Version NPM Beta Version

    FaasJS's Redis plugin.

    Install

    npm install @faasjs/redis
    

    Modules

    Classes

    Type aliases

    Functions

    Type aliases

    RedisConfig

    Ƭ RedisConfig: Object

    Type declaration

    Name Type
    config? RedisOptions
    name? string

    Functions

    get

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

    Type parameters

    Name Type
    TResult any

    Parameters

    Name Type
    key string

    Returns

    Promise<TResult>


    getJSON

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

    Type parameters

    Name Type
    TResult any

    Parameters

    Name Type
    key string

    Returns

    Promise<TResult>


    query

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

    Type parameters

    Name Type
    TResult any

    Parameters

    Name Type
    command string
    args any[]

    Returns

    Promise<TResult>


    set

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

    Type parameters

    Name Type
    TResult void

    Parameters

    Name Type
    key string
    value any
    options? SET

    Returns

    Promise<TResult>


    setJSON

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

    Type parameters

    Name Type
    TResult void

    Parameters

    Name Type
    key string
    value any
    options? SET

    Returns

    Promise<TResult>


    useRedis

    useRedis(config?): Redis & UseifyPlugin

    Parameters

    Name Type
    config? RedisConfig

    Returns

    Redis & UseifyPlugin

    Keywords

    none

    Install

    npm i @faasjs/redis

    DownloadsWeekly Downloads

    83

    Version

    0.0.2-beta.394

    License

    MIT

    Unpacked Size

    17.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • zfben