/** * Copyright 2020 Splunk, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"): you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ /** * StorageManager. */ export declare class StorageManager { /** * StorageManager. * @param storageName Key name of the data blob in Storage. * @param storageFactory StorageFactory. */ constructor(storageName: string); private _storage; private _storageName; /** * Gets the storage name. */ get storageName(): string; /** * Gets data by key reference in the data blob from Storage. * When the key reference is not specified, the entire data blob will be returned from Storage. * @param key Key reference. */ get(key?: string): any; /** * Sets a data blob into Storage by key reference. * When the key reference is not specified, the entire data blob will be set in Storage. * @param data Data. * @param key Key reference. */ set(data: any, key?: string): void; /** * Removes an entry in the data blob in Storage by key reference. * When the key reference is not specified, the entire data blob in Storage is deleted. * @param key Key reference. */ delete(key?: string): void; /** * Clears an entry in the data blob in Storage by key reference. * When the key reference is not specified, the entire data blob in Storage is cleared. * @param key Key reference. */ clear(key?: string): void; }