/** @description: A common interface for declaring a cache strategy. */ export interface StorageService { /** @description: Writes a custom data into local cache, associating the given key. */ write(key: string, value: any): void; /** @description: Reads the current data associated to the given key. */ read(key: string): TData; /** @description: Tries to remove an item in cache associated to the given key. */ remove(key: string): void; /** @description: Verifies if exists an item with the given key. */ contains(key: string): boolean; }