From 4e636c8f54e929b0bbb0700c3a45257d23c9fd94 Mon Sep 17 00:00:00 2001 From: Julien Date: Sun, 16 Jul 2023 00:35:07 +0200 Subject: [PATCH] chore: remove old templates --- templates/config.txt | 46 ------------------------------------------ templates/contract.txt | 13 ------------ 2 files changed, 59 deletions(-) delete mode 100644 templates/config.txt delete mode 100644 templates/contract.txt diff --git a/templates/config.txt b/templates/config.txt deleted file mode 100644 index 9138ae6..0000000 --- a/templates/config.txt +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Config source: https://git.io/JemcF - * - * Feel free to let us know via PR, if you find something broken in this config - * file. - */ - -import Env from '@ioc:Adonis/Core/Env' -import { redisConfig } from '@adonisjs/redis/build/config' - -/* -|-------------------------------------------------------------------------- -| Redis configuration -|-------------------------------------------------------------------------- -| -| Following is the configuration used by the Redis provider to connect to -| the redis server and execute redis commands. -| -| Do make sure to pre-define the connections type inside `contracts/redis.ts` -| file for AdonisJs to recognize connections. -| -| Make sure to check `contracts/redis.ts` file for defining extra connections -*/ -export default redisConfig({ - connection: Env.get('REDIS_CONNECTION'), - - connections: { - /* - |-------------------------------------------------------------------------- - | The default connection - |-------------------------------------------------------------------------- - | - | The main connection you want to use to execute redis commands. The same - | connection will be used by the session provider, if you rely on the - | redis driver. - | - */ - local: { - host: Env.get('REDIS_HOST'), - port: Env.get('REDIS_PORT'), - password: Env.get('REDIS_PASSWORD', ''), - db: 0, - keyPrefix: '', - }, - }, -}) diff --git a/templates/contract.txt b/templates/contract.txt deleted file mode 100644 index c70ccf3..0000000 --- a/templates/contract.txt +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Contract source: https://git.io/JemcN - * - * Feel free to let us know via PR, if you find something broken in this config - * file. - */ - -import { InferConnectionsFromConfig } from '@adonisjs/redis/build/config' -import redisConfig from '../config/redis' - -declare module '@ioc:Adonis/Addons/Redis' { - interface RedisConnectionsList extends InferConnectionsFromConfig {} -}