Class DummyStorageService<T>

class: DummyStorageService

  • service in-memory dummy data

NOTE

  • this dummy service should be replaceable with real service DynamoStorageService

Type Parameters

Hierarchy

  • DummyStorageService

Implements

Constructors

Properties

$locks: any = {}
buffer: { [id: string]: StorageModel } = {}

Type declaration

idName: string
name: string

Methods

  • increment number attribute (or overwrite string field)

    • NOTE! increments only number type.

    Parameters

    • id: string

      unique-id

    • $inc: T

      data (ONLY number is supportable)

    • Optional $upt: T

      (optional) update-set.

    Returns Promise<T>

  • update some attributes of model

    • NOTE! it will create if not exist.

    Parameters

    • id: string

      unique-id

    • item: T

      data

    • Optional $inc: T

      (optional) incrementals like count = count + 1

    Returns Promise<T>

Generated using TypeDoc