Addition of Redis LLM Cache

This commit is contained in:
vinodkiran
2023-09-30 18:51:14 +05:30
parent 4efec94dc8
commit 29be2d2608
4 changed files with 120 additions and 0 deletions
@@ -0,0 +1,43 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class RedisCacheApi implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]
constructor() {
this.label = 'Redis Cache API'
this.name = 'redisCacheApi'
this.version = 1.0
this.inputs = [
{
label: 'Redis Host',
name: 'redisCacheHost',
type: 'string',
default: '127.0.0.1'
},
{
label: 'Port',
name: 'redisCachePort',
type: 'number',
default: '6789'
},
{
label: 'User',
name: 'redisCacheUser',
type: 'string',
placeholder: '<REDIS_USERNAME>'
},
{
label: 'Password',
name: 'redisCachePwd',
type: 'password',
placeholder: '<REDIS_PASSWORD>'
}
]
}
}
module.exports = { credClass: RedisCacheApi }