hoshimi
    Preparing search index...

    Class QueueMemoryStorage<T>

    Class representing a memory storage manager. QueueMemoryStorage

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    namespace: string = "hoshimiqueue"

    The namespace of the storage.

    "hoshimiqueue"
    
    console.log(storage.namespace); // "hoshimiqueue"
    

    Methods

    • Stringify the value.

      Type Parameters

      • R = string

      Parameters

      • value: unknown

        The value to stringify.

      Returns R

      The stringified value.

      const stringified = await storage.stringify({ key: "value" });
      console.log(stringified); // "{'key':'value'}"