package.dist.src.internal.storage-data-client.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Client SDK for Momento services
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;
}