Options
All
  • Public
  • Public/Protected
  • All
Menu

A client consuming sessions

const { SessionClient } = require('tog-node')

const tog = new SessionClient('redis://127.0.0.1:6379')

Hierarchy

  • SessionClient

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private flags

flags: FlagClient

redis

redis: Redis | Cluster

Methods

session

  • Resolves a session, either by retrieving it or by computing a new one

    Parameters

    • namespace: string

      Flags namespace

    • id: string

      Unique session ID

    • options: SessionOptions

      Options used when creating the flag, which are ignored if it already exists

    Returns Promise<Session>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc