ultra-telegram-framework
    Preparing search index...

    Hybrid storage for Google Apps Script (CacheService + PropertiesService). Combines cache speed and properties reliability.

    Type Parameters

    • T

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Hybrid storage for Google Apps Script (CacheService + PropertiesService). Combines cache speed and properties reliability.

      Type Parameters

      • T

      Parameters

      • Optionaloptions: { cache?: Cache; prefix?: string; properties?: Properties; ttl?: number }

        Configuration options

        • Optionalcache?: Cache

          Which cache service to use (ScriptCache by default)

        • Optionalprefix?: string

          Prefix for keys

        • Optionalproperties?: Properties

          Which properties service to use (ScriptProperties by default)

        • Optionalttl?: number

          Time to live in seconds (21600 - 6 hours by default)

      Returns GasHybridStorage<T>

    Methods

    • Delete session (e.g., if the user finished the dialogue).

      Parameters

      • key: string

      Returns Promise<void>

    • Get session data by key.

      Parameters

      • key: string

      Returns Promise<T | undefined>

    • Save session data by key.

      Parameters

      • key: string
      • value: T

      Returns Promise<void>