Skip to content

Commit

Permalink
chore: add headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Jul 15, 2023
1 parent 5f85d09 commit 9280aa6
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 13 deletions.
9 changes: 9 additions & 0 deletions factories/redis_manager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* @adonisjs/redis
*
* (c) AdonisJS
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import { EmitterFactory } from '@adonisjs/core/factories/events'
import { Application } from '@adonisjs/core/app'
import RedisManager from '../src/redis_manager.js'
Expand Down
9 changes: 9 additions & 0 deletions src/redis_manager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* @adonisjs/redis
*
* (c) AdonisJS
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import { ApplicationService, EmitterService } from '@adonisjs/core/types'
import RedisConnection from './redis_connection.js'
import { pubsubMethods } from './pubsub_methods.js'
Expand Down
13 changes: 0 additions & 13 deletions src/types/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@ import { RawRedisConnection } from '../redis_connection.js'
import { Emitter } from '@adonisjs/core/events'
import { RawRedisManager } from '../redis_manager.js'

/*
|--------------------------------------------------------------------------
| Helpers
|--------------------------------------------------------------------------
*/
/**
* Returns factory for a given connection by inspecting it's config.
*/
// type GetConnectionFactoryType<T extends keyof RedisConnectionsList> =
// RedisConnectionsList[T] extends RedisClusterConfig
// ? RedisClusterConnectionContract
// : RedisConnectionContract

/**
* Pubsub subscriber
*/
Expand Down
9 changes: 9 additions & 0 deletions test/redis_connection.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* @adonisjs/redis
*
* (c) AdonisJS
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import RedisConnection from '../src/redis_connection.js'
import { test } from '@japa/runner'
import { BASE_URL } from './redis_manager.spec.js'
Expand Down
9 changes: 9 additions & 0 deletions test/redis_manager.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* @adonisjs/redis
*
* (c) AdonisJS
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import { test } from '@japa/runner'
import { AppFactory } from '@adonisjs/core/factories/app'
import { RedisManagerFactory } from '../factories/redis_manager.js'
Expand Down

0 comments on commit 9280aa6

Please sign in to comment.