Implements

  • IStorageDecorator

Constructors

Methods

  • Asynchronously retrieves a feature from storage based on the feature key and user.

    Parameters

    • featureKey: any

      The key of the feature to retrieve.

    • context: ContextModel
    • storageService: StorageService

      The storage service instance.

    Returns Promise<any>

    A promise that resolves to the retrieved feature or relevant status.

  • Sets data in storage based on the provided data object.

    Parameters

    • data: Record<any, any>

      The data to be stored, including feature key and user details.

    • storageService: StorageService

      The storage service instance.

    Returns Promise<VariationModel>

    A promise that resolves when the data is successfully stored.