UNPKG

@hotmeshio/hotmesh

Version:

Serverless Workflow

19 lines (18 loc) 1.12 kB
import { SearchService } from '../../index'; import { ILogger } from '../../../logger'; import { IORedisClientType } from '../../../../types/redis'; declare class IORedisSearchService extends SearchService<IORedisClientType> { constructor(searchClient: IORedisClientType, storeClient?: IORedisClientType); init(namespace: string, appId: string, logger: ILogger): Promise<void>; createSearchIndex(indexName: string, prefixes: string[], schema: string[]): Promise<void>; listSearchIndexes(): Promise<string[]>; setFields(key: string, fields: Record<string, string>): Promise<number>; getField(key: string, field: string): Promise<string>; getFields(key: string, fields: string[]): Promise<string[]>; getAllFields(key: string): Promise<Record<string, string>>; deleteFields(key: string, fields: string[]): Promise<number>; incrementFieldByFloat(key: string, field: string, increment: number): Promise<number>; sendQuery(...query: [string, ...string[]]): Promise<any>; sendIndexedQuery(index: string, query: string[]): Promise<string[]>; } export { IORedisSearchService };