Scripts
    Preparing search index...

    Class Cache

    Index

    Methods

    Methods

    • Reads value from cache with specified key.

      Parameters

      • key: string

        Key under which the value is saved.

      Returns any

      Value retrieved from cache, or null if no value with this key is stored in cache.

    • Removed value from cache with specified key.

      Parameters

      • key: string

        Key under which the value is saved.

      Returns any

      The removed value, or null if no value with this key is stored in cache.

    • Saves value to cache, that other scripts can read.

      Type Parameters

      • T

      Parameters

      • key: string

        Key of the value, by which the value is later retrieved.

      • value: T

        Saved value.

      Returns void