index.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import * as CONFIG_GET from './CONFIG_GET';
  2. import * as CONFIG_SET from './CONFIG_SET';
  3. import * as DELETE from './DELETE';
  4. import * as EXPLAIN from './EXPLAIN';
  5. import * as LIST from './LIST';
  6. import * as PROFILE from './PROFILE';
  7. import * as QUERY from './QUERY';
  8. import * as RO_QUERY from './RO_QUERY';
  9. import * as SLOWLOG from './SLOWLOG';
  10. import { RedisCommandArgument, RedisCommandArguments } from '@redis/client/dist/lib/commands';
  11. declare const _default: {
  12. CONFIG_GET: typeof CONFIG_GET;
  13. configGet: typeof CONFIG_GET;
  14. CONFIG_SET: typeof CONFIG_SET;
  15. configSet: typeof CONFIG_SET;
  16. DELETE: typeof DELETE;
  17. delete: typeof DELETE;
  18. EXPLAIN: typeof EXPLAIN;
  19. explain: typeof EXPLAIN;
  20. LIST: typeof LIST;
  21. list: typeof LIST;
  22. PROFILE: typeof PROFILE;
  23. profile: typeof PROFILE;
  24. QUERY: typeof QUERY;
  25. query: typeof QUERY;
  26. RO_QUERY: typeof RO_QUERY;
  27. roQuery: typeof RO_QUERY;
  28. SLOWLOG: typeof SLOWLOG;
  29. slowLog: typeof SLOWLOG;
  30. };
  31. export default _default;
  32. type QueryParam = null | string | number | boolean | QueryParams | Array<QueryParam>;
  33. type QueryParams = {
  34. [key: string]: QueryParam;
  35. };
  36. export interface QueryOptions {
  37. params?: QueryParams;
  38. TIMEOUT?: number;
  39. }
  40. export type QueryOptionsBackwardCompatible = QueryOptions | number;
  41. export declare function pushQueryArguments(args: RedisCommandArguments, graph: RedisCommandArgument, query: RedisCommandArgument, options?: QueryOptionsBackwardCompatible, compact?: boolean): RedisCommandArguments;