All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.src.internal.storage-data-client.d.ts Maven / Gradle / Ivy

The newest version!
import { StorageDelete, StorageGet, StoragePut } from '@gomomento/sdk-core';
import { IStorageDataClient } from '@gomomento/sdk-core/dist/src/internal/clients';
import { StorageClientAllProps } from './storage-client-all-props';
export declare class StorageDataClient implements IStorageDataClient {
    private readonly configuration;
    private readonly credentialProvider;
    private readonly cacheServiceErrorMapper;
    private readonly logger;
    private readonly requestTimeoutMs;
    private readonly client;
    private readonly interceptors;
    private static readonly DEFAULT_MAX_SESSION_MEMORY_MB;
    /**
     * @param {StorageClientAllProps} props
     */
    constructor(props: StorageClientAllProps);
    close(): void;
    private validateRequestTimeout;
    private validateStoreNameOrThrowError;
    private initializeInterceptors;
    private createMetadata;
    get(storeName: string, key: string): Promise;
    private sendGet;
    putInt(storeName: string, key: string, value: number): Promise;
    putDouble(storeName: string, key: string, value: number): Promise;
    putString(storeName: string, key: string, value: string): Promise;
    putBytes(storeName: string, key: string, value: Uint8Array): Promise;
    private sendPut;
    delete(storeName: string, key: string): Promise;
    private sendDelete;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy