2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
export class Redis implements ICredentialType {
|
|
|
|
name = 'redis';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
displayName = 'Redis';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'redis';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2019-06-23 03:35:23 -07:00
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
typeOptions: {
|
|
|
|
password: true,
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Host',
|
|
|
|
name: 'host',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: 'localhost',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Port',
|
|
|
|
name: 'port',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'number',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: 6379,
|
|
|
|
},
|
2022-01-08 09:07:35 -08:00
|
|
|
{
|
2022-03-12 03:14:39 -08:00
|
|
|
displayName: 'Database Number',
|
2022-01-08 09:07:35 -08:00
|
|
|
name: 'database',
|
|
|
|
type: 'number',
|
|
|
|
default: 0,
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
];
|
|
|
|
}
|